mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 12:45:39 +01:00
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:
parent
f6505d22f2
commit
1dd0635db4
6 changed files with 193 additions and 151 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue