-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4735 from Tyriar/playwright
Start @playwright/test migration
- Loading branch information
Showing
32 changed files
with
3,814 additions
and
3,229 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 |
---|---|---|
|
@@ -90,14 +90,15 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: Unzip artifacts (Linux, macOS) | ||
if: runner.os != 'Windows' | ||
run: unzip -o compressed-build.zip | ||
- name: Unzip artifacts (Windows) | ||
if: runner.os == 'Windows' | ||
run: 7z x compressed-build.zip -aoa -o${{ github.workspace }} | ||
- name: Print directory structure | ||
run: ls -R | ||
- name: Unzip artifacts | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
pwsh -Command "7z x compressed-build.zip -aoa -o${{ github.workspace }}" | ||
else | ||
unzip -o compressed-build.zip | ||
fi | ||
ls -R | ||
- name: Unit test coverage | ||
run: | | ||
yarn test-unit-coverage --forbid-only | ||
|
@@ -131,14 +132,15 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: Unzip artifacts (Linux, macOS) | ||
if: runner.os != 'Windows' | ||
run: unzip -o compressed-build.zip | ||
- name: Unzip artifacts (Windows) | ||
if: runner.os == 'Windows' | ||
run: 7z x compressed-build.zip -aoa -o${{ github.workspace }} | ||
- name: Print directory structure | ||
run: ls -R | ||
- name: Unzip artifacts | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
pwsh -Command "7z x compressed-build.zip -aoa -o${{ github.workspace }}" | ||
else | ||
unzip -o compressed-build.zip | ||
fi | ||
ls -R | ||
- name: Unit tests | ||
run: yarn test-unit --forbid-only | ||
|
||
|
@@ -164,14 +166,15 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: Unzip artifacts (Linux, macOS) | ||
if: runner.os != 'Windows' | ||
run: unzip -o compressed-build.zip | ||
- name: Unzip artifacts (Windows) | ||
if: runner.os == 'Windows' | ||
run: 7z x compressed-build.zip -aoa -o${{ github.workspace }} | ||
- name: Print directory structure | ||
run: ls -R | ||
- name: Unzip artifacts | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
pwsh -Command "7z x compressed-build.zip -aoa -o${{ github.workspace }}" | ||
else | ||
unzip -o compressed-build.zip | ||
fi | ||
ls -R | ||
- name: Unit tests | ||
run: yarn test-unit --forbid-only | ||
|
||
|
@@ -204,17 +207,61 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: Unzip artifacts (Linux, macOS) | ||
if: runner.os != 'Windows' | ||
run: unzip -o compressed-build.zip | ||
- name: Unzip artifacts (Windows) | ||
if: runner.os == 'Windows' | ||
run: 7z x compressed-build.zip -aoa -o${{ github.workspace }} | ||
- name: Print directory structure | ||
run: ls -R | ||
- name: Unzip artifacts | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
pwsh -Command "7z x compressed-build.zip -aoa -o${{ github.workspace }}" | ||
else | ||
unzip -o compressed-build.zip | ||
fi | ||
ls -R | ||
- name: Integration tests (${{ matrix.browser }}) | ||
run: yarn test-api-${{ matrix.browser }} --headless --forbid-only | ||
|
||
test-playwright-parallel: | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
node-version: [18] # just one as integration tests are about testing in browser | ||
runs-on: [ubuntu] # macos is flaky | ||
browser: [chromium, firefox, webkit] | ||
runs-on: ${{ matrix.runs-on }}-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Use Node.js ${{ matrix.node-version }}.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }}.x | ||
cache: 'yarn' | ||
- name: Install dependencies | ||
run: | | ||
yarn --frozen-lockfile | ||
yarn install-addons | ||
- name: Install playwright | ||
run: npx playwright install --with-deps ${{ matrix.browser }} | ||
- name: Wait for build job | ||
uses: NathanFirmo/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
job: build | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: Unzip artifacts | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
pwsh -Command "7z x compressed-build.zip -aoa -o${{ github.workspace }}" | ||
else | ||
unzip -o compressed-build.zip | ||
fi | ||
ls -R | ||
- name: Build demo | ||
run: yarn build-demo | ||
- name: Integration tests | ||
run: yarn test-playwright-${{ matrix.browser }} --forbid-only | ||
|
||
test-api: | ||
needs: build | ||
timeout-minutes: 20 | ||
|
@@ -240,13 +287,14 @@ jobs: | |
- uses: actions/download-artifact@v3 | ||
with: | ||
name: build-artifacts | ||
- name: Unzip artifacts (Linux, macOS) | ||
if: runner.os != 'Windows' | ||
run: unzip -o compressed-build.zip | ||
- name: Unzip artifacts (Windows) | ||
if: runner.os == 'Windows' | ||
run: 7z x compressed-build.zip -aoa -o${{ github.workspace }} | ||
- name: Print directory structure | ||
run: ls -R | ||
- name: Unzip artifacts | ||
shell: bash | ||
run: | | ||
if [ "$RUNNER_OS" == "Windows" ]; then | ||
pwsh -Command "7z x compressed-build.zip -aoa -o${{ github.workspace }}" | ||
else | ||
unzip -o compressed-build.zip | ||
fi | ||
ls -R | ||
- name: Integration tests (${{ matrix.browser }}) | ||
run: yarn test-api-${{ matrix.browser }} --headless --forbid-only |
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 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 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 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
Oops, something went wrong.