refactor: e2e script cleanup #2012
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changed
e2e.sh
) that replaces multiple separate scriptsHEADLESS_MODE
environment variable (on by default)What to test
yarn e2e
- runs all tests in headless modeyarn e2e:headed
- runs tests with visible browseryarn e2e serial/send/1_sendFlow.test.ts
- runs a specific test fileyarn e2e ./e2e/parallel/
- runs all tests in a directoryyarn e2e:parallel
yarn e2e:swap
yarn e2e:send
yarn e2e:send:optimism
yarn e2e:dappInteractions
PR-Codex overview
This PR focuses on restructuring end-to-end (E2E) testing scripts, enhancing the functionality and clarity of E2E tests while removing outdated scripts.
Detailed summary
scripts/e2e-serial-tests.sh
,scripts/e2e-parallel-tests.sh
,scripts/e2e-op-serial-tests.sh
.README.md
to reflect new E2E test commands and options..github/workflows/claude-review.yml
to adjust disallowed tools.e2e/helpers.ts
to support headless mode for Firefox and Chrome.package.json
to replace old scripts with a unified./scripts/e2e.sh
script for E2E tests.scripts/e2e.sh
script that consolidates E2E test execution with options for parallel and serial tests..github/workflows/build.yml
to use new E2E commands instead of deprecatedvitest
commands.