Skip to content

Fix flaky e2e tests#951

Merged
hhubert6 merged 8 commits into
mainfrom
fix-flaky-e2e-tests
Mar 18, 2026
Merged

Fix flaky e2e tests#951
hhubert6 merged 8 commits into
mainfrom
fix-flaky-e2e-tests

Conversation

@hhubert6
Copy link
Copy Markdown
Contributor

No description provided.

@hhubert6 hhubert6 force-pushed the fix-flaky-e2e-tests branch from e4cf2e7 to 8ebee80 Compare March 13, 2026 14:30
@hhubert6 hhubert6 changed the title Fix flaky e2e discovery.spec.ts tests Fix flaky e2e tests Mar 16, 2026
@hhubert6 hhubert6 force-pushed the fix-flaky-e2e-tests branch from 08c22b9 to 8d9d510 Compare March 16, 2026 15:48
@hhubert6 hhubert6 marked this pull request as ready for review March 17, 2026 08:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to reduce flakiness in the Playwright e2e suite by making timing assertions more tolerant, fixing missing awaits, and adding a global warm-up step to ensure tracing is initialized before tests run.

Changes:

  • Relaxed execution-time assertions in node-inspector e2e tests to tolerate runtime variability.
  • Fixed async/navigation/visibility waits in serial discovery tests and stabilized assign pin/unpin interactions.
  • Updated Playwright configuration to add globalSetup, retain traces on failure, and run serial test projects with a single worker.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
e2e/tests/node-inspector.spec.ts Makes callback timing assertions more tolerant to reduce flakes.
e2e/tests/discovery.serial.spec.ts Fixes a missing await and uses a more robust “Settings” heading visibility check.
e2e/tests/assigns.spec.ts Forces pin/unpin clicks to bypass actionability checks (intended stabilization).
e2e/playwright.config.ts Adds global setup, keeps traces on failures, and configures serial projects for 1 worker.
e2e/global-setup.ts New warm-up routine intended to ensure tracing is initialized before running tests.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread e2e/tests/assigns.spec.ts
Comment thread e2e/global-setup.ts
Comment thread e2e/global-setup.ts Outdated
Comment thread e2e/tests/node-inspector.spec.ts
Comment thread e2e/tests/node-inspector.spec.ts
Comment thread e2e/tests/assigns.spec.ts
@hhubert6 hhubert6 requested review from kraleppa and srzeszut March 17, 2026 11:16
@hhubert6 hhubert6 merged commit 97ed142 into main Mar 18, 2026
4 checks passed
@hhubert6 hhubert6 deleted the fix-flaky-e2e-tests branch March 18, 2026 09:41
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.

3 participants