Skip to content

Commit df5e841

Browse files
Increase SPA navigation timeouts for CI reliability
GitHub SPA transitions can be slow on CI runners. Bump headerActions wait to 30s and Mocha timeout to 75s (worst-case sum of all waits). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1688b25 commit df5e841

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

tests/firefox/extension.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ describe('Navigation', function () {
430430
await issueLink.waitForDisplayed({ timeout: 10000 });
431431
await issueLink.click();
432432

433-
// Wait for issue page header actions
433+
// Wait for issue page header actions (30s: GitHub SPA can be slow on CI)
434434
const headerActions = await $(headerActionsSelector);
435-
await headerActions.waitForDisplayed({ timeout: 15000 });
435+
await headerActions.waitForDisplayed({ timeout: 30000 });
436436

437437
const bookmarkButton = await $(`${headerActionsSelector} ${bookmarkSelector}`);
438438
await bookmarkButton.waitForDisplayed({ timeout: 10000 });
@@ -454,9 +454,9 @@ describe('Navigation', function () {
454454
await issueLink.waitForDisplayed({ timeout: 10000 });
455455
await issueLink.click();
456456

457-
// Wait for issue page header actions
457+
// Wait for issue page header actions (30s: GitHub SPA can be slow on CI)
458458
const headerActions = await $(headerActionsSelector);
459-
await headerActions.waitForDisplayed({ timeout: 15000 });
459+
await headerActions.waitForDisplayed({ timeout: 30000 });
460460

461461
const bookmarkButton = await $(`${headerActionsSelector} ${bookmarkSelector}`);
462462
await bookmarkButton.waitForDisplayed({ timeout: 10000 });

wdio.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const config = {
5656
reporters: ['spec'],
5757
mochaOpts: {
5858
ui: 'bdd',
59-
timeout: 15000,
59+
timeout: 75000,
6060
},
6161

6262
// Install the extension via installAddOn() in the before hook rather than

0 commit comments

Comments
 (0)