Skip to content

test: Support configurable navigation timeout and increase it for Windows tests - #2482

Open
nattallius wants to merge 1 commit into
mainfrom
increase-win-timeout
Open

test: Support configurable navigation timeout and increase it for Windows tests#2482
nattallius wants to merge 1 commit into
mainfrom
increase-win-timeout

Conversation

@nattallius

Copy link
Copy Markdown
Contributor

This change adds a configurable navigation timeout to McpContext options, allowing tests to override the default 10-second limit. We use this in tests/utils.ts to set a 20-second timeout on Windows. This potentially fixes flaky test timeouts on slow Windows environments by ensuring that both direct navigations and click-triggered navigations (which use WaitForHelper) are synchronized to the longer 20-second limit and are not reset back to 10 seconds during emulation.

@nattallius
nattallius requested a review from OrKoN August 6, 2026 08:49
Comment thread src/McpPage.ts
this.pptrPage,
cpuMultiplier,
networkMultiplier,
navigationTimeout,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

navigation timeout in the WaitForHelper is a different timeout IIUC. I think we should not pass this.#navigationTimeout * networkMultiplier * cpuMultiplier as navigation timeout for WaitForHelper here. Additionally, I do not think the WaitForHelper timeout was the cause of flakiness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants