-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(e2e): migrate to synpress and playwright (#1073)
* [WIP] test: add synpress and playwright for e2e * fixup * fixup * fixup * fixup * fixup * pin prettier * debug formatter * log prettier version * fixup * fixup * test: replace cypress tests with playwright * fixup * clean up obsolete hardhat node * add e2e test docs * ci: fix e2e artifacts upload * fixup * fix: serverless functions build * fix: hack for running e2e test * Update src/utils/token.ts Co-authored-by: James Morris, MS <[email protected]> * fixup * remove emoji --------- Co-authored-by: James Morris, MS <[email protected]>
- Loading branch information
1 parent
479df54
commit fdb3ebb
Showing
50 changed files
with
2,043 additions
and
1,528 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
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,36 @@ | ||
name: E2E Tests | ||
|
||
on: | ||
deployment_status: | ||
|
||
jobs: | ||
e2e-tests: | ||
if: | | ||
github.event_name == 'deployment_status' && | ||
github.event.deployment_status.state == 'success' && | ||
contains(github.event.deployment_status.environment_url, 'app-frontend-v3') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./.github/actions/setup | ||
# For now, we only need Chromium. | ||
- name: Install Playwright Browsers | ||
run: yarn playwright install chromium | ||
- name: Setup Synpress wallet cache | ||
# https://synpress.io/docs/guides/ci#ci | ||
run: xvfb-run yarn synpress ./e2e/wallet-setup | ||
env: | ||
E2E_DAPP_URL: ${{ github.event.deployment_status.environment_url }} | ||
- name: Run tests | ||
# https://synpress.io/docs/guides/ci#ci | ||
run: xvfb-run yarn test:e2e:headful | ||
env: | ||
E2E_DAPP_URL: ${{ github.event.deployment_status.environment_url }} | ||
- name: Archive Playwright report | ||
uses: actions/upload-artifact@v4 | ||
if: success() || failure() | ||
with: | ||
name: playwright-report-headful | ||
path: | | ||
playwright-report/ | ||
if-no-files-found: error |
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 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.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.