Skip to content

e2e: verify session tab click landed before reading metadata#14903

Open
midleman wants to merge 1 commit into
mainfrom
mi/fix-session-tab-click-race
Open

e2e: verify session tab click landed before reading metadata#14903
midleman wants to merge 1 commit into
mainfrom
mi/fix-session-tab-click-race

Conversation

@midleman

Copy link
Copy Markdown
Contributor

Summary

Fixes a flaky session-reuse path in e2e tests where a notification toast could swallow a force-click on a console tab, leaving the metadata dialog stuck closed.

  • Sessions.getMetadata() now retries the tab click until the tab actually reports active (tab-button--active), instead of assuming a force-click landed.
  • Root-caused via @:triage-e2e-test: CI history showed this hitting the Quarto inline-output interactive-HTML-widget test almost exclusively on win/electron, correlating with concurrent notification toasts in sibling failures from the same runs.

QA Notes

@:sessions @:win

A notification toast can sit on top of a console tab and swallow a
force-click without the tab ever going active, leaving
activePositronConsoleInstance stale so the metadata dialog silently
never opens. Retry the click until the tab actually reports active.
@github-actions

Copy link
Copy Markdown

E2E Tests 🚀
This PR will run tests tagged with: @:critical @:sessions @:win

Why these tags?
Tag Source
@:critical Always runs (required)
@:sessions PR description
@:win PR description

More on automatic tags from changed files.

Warning

Unrecognized tag(s) in the PR description, ignored: @:triage-e2e-test. Check for a typo, or see the valid tags list.

readme  valid tags

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.

1 participant