[experiment] Add cross-platform Playwright e2e scripts and Windows runner#13411
Draft
[experiment] Add cross-platform Playwright e2e scripts and Windows runner#13411
Conversation
Introduce a comprehensive set of cross-platform TypeScript helper scripts and many test fixtures for the Playwright e2e suite, plus a Windows CI job and runtime improvements to support running tests on Windows. This change was needed to make the e2e test suite cross-platform (especially Windows) by: - Adding a new GitHub Actions job (playwright-windows) to run e2e tests on windows-latest with appropriate environment and caching. - Adding numerous TypeScript scripts under e2e/playwright/scripts to create test repositories, branches, hooks, and helper actions used by tests. - Introducing a lib.ts with cross-platform helpers for filesystem, process execution, git wrappers, directory stack, and hook management. - Updating runtime helpers (env.ts and setup.ts) to resolve .exe binaries on Windows, run .ts scripts via Node with --experimental-strip-types, and provide cross-platform process termination (gracefulKillProcess/forceKillProcess) and script resolution logic. These changes enable consistent test execution across platforms and allow existing .sh-based test references to map to new .ts scripts for better portability.
| persist-credentials: false | ||
| ref: ${{ github.event.inputs.sha }} | ||
| - name: Install Rust toolchain | ||
| uses: dtolnay/rust-toolchain@stable |
| if: ${{ github.ref != 'refs/heads/master' }} | ||
| - name: Cache playwright binaries | ||
| if: ${{ github.ref != 'refs/heads/master' }} | ||
| uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Introduce a comprehensive set of cross-platform TypeScript helper
scripts and many test fixtures for the Playwright e2e suite, plus a
Windows CI job and runtime improvements to support running tests on
Windows. This change was needed to make the e2e test suite
cross-platform (especially Windows) by:
These changes enable consistent test execution across platforms and
allow existing .sh-based test references to map to new .ts scripts for
better portability.