feat: fix and migrate smoke tests to Playwright (#1961)

* feat: migrate e2e tests to Playwright

* fix: OS dependency

* fix: race condition

* fix: increased launch timeout
This commit is contained in:
Max Schmitt 2020-05-11 18:21:24 +02:00 committed by GitHub
parent f6505d22f2
commit 1dd0635db4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 193 additions and 151 deletions

View file

@ -2,6 +2,9 @@ name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 8 * * *'
@ -12,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: microsoft/playwright-github-action@v1
- name: Set up Node.js
uses: actions/setup-node@v1
with:
@ -40,10 +44,11 @@ jobs:
run: |
npm run bundle
- name: Build Tests
run: |
npm run build-test
run: npm run build-test
- name: Run Smoke Test
run: |
npm run ciserver &
sleep 10
npm run test
BROWSER=chromium npm run test
BROWSER=firefox npm run test
BROWSER=webkit npm run test