diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3766db7..1b35303 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package.json b/package.json index 0ac8364..80f7358 100644 --- a/package.json +++ b/package.json @@ -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",