Skip to content

Commit c92fe92

Browse files
committed
Increase Mocha timeout to 15s for Playwright unit tests
- _after() method has 10s timeout for browser cleanup - Previous 5s Mocha timeout was causing premature test failures - 15s timeout gives enough buffer for cleanup to complete - Fixes 8 failing unit tests with 'Timeout of 5000ms exceeded' in afterEach/after hooks
1 parent 686674e commit c92fe92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/playwright.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ jobs:
6565
- name: run webkit tests
6666
run: 'BROWSER=webkit node ./bin/codecept.js run -c test/acceptance/codecept.Playwright.js --grep @Playwright --debug'
6767
- name: run chromium unit tests
68-
run: ./node_modules/.bin/mocha test/helper/Playwright_test.js --timeout 5000
68+
run: ./node_modules/.bin/mocha test/helper/Playwright_test.js --timeout 15000
6969
- name: Stop mock server
7070
run: npm run mock-server:stop

0 commit comments

Comments
 (0)