Skip to content

Commit 73563ac

Browse files
committed
Reduce global test timeout in Playwright configuration from 70 seconds to 60 seconds, while overriding it to 70 seconds for specific passkey login tests to accommodate cooldown periods.
1 parent 025585c commit 73563ac

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

e2e/tests/desktop/extra-features.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const GUEST_USER_CREDENTIALS = generateUserCredentials()
1414

1515
describe('Passkey Login', () => {
1616
test('Verify passkey login', async ({page}) => {
17+
// Override the global test timeout to 70s to ensure the test can complete
18+
test.setTimeout(70000)
1719
// webauthn/authenticate/start has a 60s cooldown; wait 1 min to ensure it can be called again
1820
await page.waitForTimeout(60000)
1921
await validatePasskeyLogin({page})

e2e/tests/mobile/extra-features.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const GUEST_USER_CREDENTIALS = generateUserCredentials()
1414

1515
describe('Passkey Login', () => {
1616
test('Verify passkey login', async ({page}) => {
17+
// Override the global test timeout to 70s to ensure the test can complete
18+
test.setTimeout(70000)
1719
// webauthn/authenticate/start has a 60s cooldown; wait 1 min to ensure it can be called again
1820
await page.waitForTimeout(60000)
1921
await validatePasskeyLogin({page})

playwright.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = defineConfig({
1616
* Playwright should only run the *.spec.js files.
1717
*/
1818
testMatch: '**/*.spec.js',
19-
timeout: 70000,
19+
timeout: 60000,
2020
/* Run tests in files in parallel */
2121
fullyParallel: true,
2222
/* Fail the build on CI if you accidentally left test.only in the source code. */

0 commit comments

Comments
 (0)