Skip to content

Commit 686674e

Browse files
committed
Fix: Remove _cleanup() calls from unit test after() hooks to prevent 5s timeout
- _cleanup() has 10s timeout but Mocha tests have 5s timeout - _afterSuite() already stops the browser properly - Global after() hook handles final process exit - Fixes 8 failing unit tests with 'Timeout of 5000ms exceeded' errors
1 parent 6f0b318 commit 686674e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

test/helper/Playwright_test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ describe('Playwright', function () {
8282

8383
after(async () => {
8484
await I._afterSuite()
85-
await I._cleanup()
8685
})
8786

8887
describe('open page : #amOnPage', () => {
@@ -1695,8 +1694,6 @@ describe('Playwright - Performance Metrics', () => {
16951694

16961695
after(async () => {
16971696
await I._afterSuite()
1698-
// Use the built-in cleanup method
1699-
await I._cleanup()
17001697
})
17011698
})
17021699

0 commit comments

Comments
 (0)