Add some debugging to the playwright script + add a timeout for the playwright ci (#1400)

This commit is contained in:
Adam Weeden 2022-04-22 10:51:00 -04:00 committed by GitHub
parent 513b9dc93d
commit ce04b3337c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -46,5 +46,7 @@ jobs:
- if: matrix.platform == 'ubuntu-latest' && matrix.node-version == '18'
run: npm run lint
- run: npm run test -- --testPathIgnorePatterns ".*playwright.*"
- if: matrix.platform != 'ubuntu-latest' # Doesn't work on non-GUI ubuntu
- name: Playwright tests
if: matrix.platform != 'ubuntu-latest' # Doesn't work on non-GUI ubuntu
run: npm run test:playwright
timeout-minutes: 5

View File

@ -46,7 +46,7 @@
"relock": "rm -rf ./node_modules/ ./app/node_modules/ ./npm-shrinkwrap.json ./app/npm-shrinkwrap.json && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out; cd app && npm install --ignore-scripts --package-lock && mv package-lock.json npm-shrinkwrap.json && npm out",
"test:integration": "jest --testRegex '.*integration-test.js'",
"test:manual": "npm run build && bash .github/manual-test",
"test:playwright": "jest --testRegex '.*playwright-test.js'",
"test:playwright": "jest --detectOpenHandles --testRegex '.*playwright-test.js'",
"test:unit": "jest",
"test:watch": "echo 'Remember to run npm run build:watch for the test watcher to work!' && jest --watchAll --collectCoverage=false",
"test:withlog": "LOGLEVEL=trace npm run test",