Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
devops: introduce "FYI" test bots (#6834)
Andrey Lushnikovc9613b36f993
diff --git a/.github/workflows/tests_fyi.yml b/.github/workflows/tests_fyi.ymlnew file mode 100644index 0000000000..1a0dc15aed--- /dev/null+++ b/.github/workflows/tests_fyi.yml@@ -0,0 +1,98 @@+name: "tests 3"++on:+ push:+ branches:+ - master+ - release-*++env:+ # Force terminal colors. @see https://www.npmjs.com/package/colors+ FORCE_COLOR: 1+ FLAKINESS_CONNECTION_STRING: ${{ secrets.FLAKINESS_CONNECTION_STRING }}++jobs:+ video_linux:+ name: "Video Linux"+ strategy:+ fail-fast: false+ matrix:+ browser: [chromium, firefox, webkit]+ runs-on: ubuntu-20.04+ steps:+ - uses: actions/checkout@v2+ - uses: actions/setup-node@v2+ with:+ node-version: 12+ - run: npm ci+ env:+ DEBUG: pw:install+ - run: npm run build+ - run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium+ # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR+ # Wrap `npm run` in a subshell to redirect STDERR to file.+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"+ env:+ PWTEST_VIDEO: 1+ - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json+ if: always()+ - uses: actions/upload-artifact@v1+ if: ${{ always() }}+ with:+ name: video-${{ matrix.browser }}-linux-test-results+ path: test-results++ test_android:+ name: Android Emulator (shard ${{ matrix.shard }})+ strategy:+ fail-fast: false+ matrix:+ shard: [1, 2]+ runs-on: macos-10.15+ steps:+ - uses: actions/checkout@v2+ - uses: actions/setup-node@v2+ with:+ node-version: 14+ - run: npm ci+ env:+ DEBUG: pw:install+ - run: npm run build+ - run: node lib/cli/cli install-deps+ - name: Create Android Emulator+ run: utils/avd_recreate.sh+ - name: Start Android Emulator+ run: utils/avd_start.sh+ - name: Run tests+ run: npm run atest -- --shard=${{ matrix.shard }}/2+ - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json+ if: always()+ - uses: actions/upload-artifact@v1+ if: ${{ always() }}+ with:+ name: android-test-results+ path: test-results++ test_electron:+ name: "Electron Linux"+ runs-on: ubuntu-20.04+ steps:+ - uses: actions/checkout@v2+ - uses: actions/setup-node@v2+ with:+ node-version: 12+ - run: npm ci+ - run: npm run build+ - run: node lib/cli/cli install-deps chromium+ # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR+ # Wrap `npm run` in a subshell to redirect STDERR to file.+ - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run etest"+ - run: node tests/config/checkCoverage.js electron+ - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json+ if: always()+ - uses: actions/upload-artifact@v1+ if: ${{ always() }}+ with:+ name: electron-linux-test-results+ path: test-results+diff --git a/.github/workflows/tests_secondary.yml b/.github/workflows/tests_secondary.ymlindex 1ad2c523bf..8f49b6ef44 100644--- a/.github/workflows/tests_secondary.yml+++ b/.github/workflows/tests_secondary.yml@@ -191,67 +191,6 @@ jobs:name: mode-${{ matrix.mode }}-linux-test-resultspath: test-results- video_linux:- name: "Video Linux"- strategy:- fail-fast: false- matrix:- browser: [chromium, firefox, webkit]- runs-on: ubuntu-20.04- steps:- - uses: actions/checkout@v2- - uses: actions/setup-node@v2- with:- node-version: 12- - run: npm ci- env:- DEBUG: pw:install- - run: npm run build- - run: node lib/cli/cli install-deps ${{ matrix.browser }} chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run test -- --project=${{ matrix.browser }}"- env:- PWTEST_VIDEO: 1- - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json- if: always()- - uses: actions/upload-artifact@v1- if: ${{ always() }}- with:- name: video-${{ matrix.browser }}-linux-test-results- path: test-results-- test_android:- name: Android Emulator (shard ${{ matrix.shard }})- strategy:- fail-fast: false- matrix:- shard: [1, 2]- runs-on: macos-10.15- steps:- - uses: actions/checkout@v2- - uses: actions/setup-node@v2- with:- node-version: 14- - run: npm ci- env:- DEBUG: pw:install- - run: npm run build- - run: node lib/cli/cli install-deps- - name: Create Android Emulator- run: utils/avd_recreate.sh- - name: Start Android Emulator- run: utils/avd_start.sh- - name: Run tests- run: npm run atest -- --shard=${{ matrix.shard }}/2- - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json- if: always()- - uses: actions/upload-artifact@v1- if: ${{ always() }}- with:- name: android-test-results- path: test-results-chrome_stable_linux:name: "Chrome Stable (Linux)"runs-on: ubuntu-20.04@@ -444,29 +383,6 @@ jobs:name: edge-stable-win-test-resultspath: test-results- test_electron:- name: "Electron Linux"- runs-on: ubuntu-20.04- steps:- - uses: actions/checkout@v2- - uses: actions/setup-node@v2- with:- node-version: 12- - run: npm ci- - run: npm run build- - run: node lib/cli/cli install-deps chromium- # XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR- # Wrap `npm run` in a subshell to redirect STDERR to file.- - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "npm run etest"- - run: node tests/config/checkCoverage.js electron- - run: ./utils/upload_flakiness_dashboard.sh ./test-results/report.json- if: always()- - uses: actions/upload-artifact@v1- if: ${{ always() }}- with:- name: electron-linux-test-results- path: test-results-chrome_beta_linux:name: "Chrome Beta (Linux)"runs-on: ubuntu-20.04