-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: remove cypress related stuff * feat: set up Playwright & create an example test * feat: add the `Playwright Tests` GitHub Action * fix(gh action): add Build step * cleanup(.gitignore): remove unnecessary line * fix(gh action): install browsers before dependencies * cleanup(fixtures): remove `console.log` * fix(gh action): provide envs * feat: run workflow on successful deployment * feat: use `navigator.userAgent` to detect test user * fix(gh action): run for specific URLs & pass deployment URL as env var * fix(env): add `NEXT_PUBLIC_E2E_WALLET_MNEMONIC` * fix(gh action): more specific url * fix invalid workflow file * trigger * fix(gh action): negate `contains` * fix(gh action): install dependencies * fix(playwright.config): webServer config * debug: temporarily log deployment_url * fix(playwright): always generate html report * fix(gh action): use `deployment_status.target_url` * cleanup: revert env changes * cleanup: remove unnecessary steps from workflow file * fix: install `@playwright/test` globally * fix: copy playwright to node_modules * fix: install `@playwright/test` only * cleanup: remove fake success returns in onchain tx related tests * chore: upgrade `@playwright/test` * fix: revert workflow changes, just run `npm ci` * fix(gh action): concurrency
- Loading branch information
1 parent
dc06aab
commit 1514f37
Showing
37 changed files
with
457 additions
and
1,715 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Playwright Tests | ||
on: | ||
deployment_status: | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "playwright" | ||
|
||
jobs: | ||
test: | ||
if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: lts/* | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Install Playwright Browsers | ||
run: npx playwright install --with-deps | ||
- name: Run Playwright tests | ||
env: | ||
DEPLOYMENT_URL: ${{ github.event.deployment_status.target_url }} | ||
run: npm run test | ||
- uses: actions/upload-artifact@v4 | ||
if: ${{ failure() }} | ||
with: | ||
name: playwright-report | ||
path: playwright-report/ | ||
retention-days: 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
167 changes: 0 additions & 167 deletions
167
cypress/e2e/1-roles-requirements-rewards/0-manage-roles.spec.ts
This file was deleted.
Oops, something went wrong.
98 changes: 0 additions & 98 deletions
98
cypress/e2e/2-guild-checkout/0-payment-requirement.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.