Skip to content

chore(test): Reduce unneeded idleTimeout test config#20467

Merged
mydea merged 1 commit intodevelopfrom
fn/reduce-browser-integration-tests-timeout
Apr 23, 2026
Merged

chore(test): Reduce unneeded idleTimeout test config#20467
mydea merged 1 commit intodevelopfrom
fn/reduce-browser-integration-tests-timeout

Conversation

@mydea
Copy link
Copy Markdown
Member

@mydea mydea commented Apr 23, 2026

After looking a bit at what the slowest browser-integration-tests are, I found an easy-to-fix pattern in our tests - we had a lot of tests there that set some arbitrary idleTimeout to the browserIntegrationTest. This massively made these tests slower as it takes much longer to flush any pageload span. Many test runtimes reduced from 10-20s to 1-5s due to this change. A few places remain where this seems to be necessary, but there are way fewer now.

FYI 1000ms is the default, we also had some defining this for some reason, I also removed those to be more consistent.

@mydea mydea self-assigned this Apr 23, 2026
@mydea mydea marked this pull request as ready for review April 23, 2026 14:35
@mydea mydea requested review from logaretm and s1gr1d April 23, 2026 14:36
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 9f4a7d0. Configure here.

}

sentryTest('should capture a `connection.rtt` metric.', async ({ getLocalTestUrl, page }) => {
sentryTest('should capture a `connection.rtt` metric. xxx', async ({ getLocalTestUrl, page }) => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Accidentally committed "xxx" debug marker in test name

Low Severity

The test name 'should capture a \connection.rtt` metric. xxx'has an extraneous xxx` suffix appended to it. This looks like a leftover debugging marker (possibly used to isolate/run a single test during development) that was accidentally included in the commit.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 9f4a7d0. Configure here.

@mydea mydea merged commit a2a1bef into develop Apr 23, 2026
63 checks passed
@mydea mydea deleted the fn/reduce-browser-integration-tests-timeout branch April 23, 2026 15:09
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