Skip to content

Fix assertion order#834

Closed
mendral-app[bot] wants to merge 1 commit into
mainfrom
mendral/fix-assertion-order
Closed

Fix assertion order#834
mendral-app[bot] wants to merge 1 commit into
mainfrom
mendral/fix-assertion-order

Conversation

@mendral-app
Copy link
Copy Markdown
Contributor

@mendral-app mendral-app Bot commented May 20, 2026

Summary

  • Move switch_tab before aobserve() in test_observe_with_instructions so the observation captures the new tab's URL (console.notte.cc) instead of the original tab's URL (www.notte.cc)

Fixes flaky test caused by asserting the URL on the wrong tab. The console link opens in a new tab, so we need to switch tabs before observing.

Related insight: https://app.mendral.com/insights/01KRYW70WKW0ZX0NV98DH6KEA0


Note

Created by Mendral. Tag @mendral-app with feedback or questions.

The test asserts the URL starts with https://console.notte.cc, but the
console link opens in a new tab. Previously, aobserve() was called before
switch_tab, so the observation captured the original tab's URL, causing
flaky failures. Reorder to switch tabs first, then observe and assert.
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 20, 2026

PR author is not in the allowed authors list.

@mendral-app mendral-app Bot marked this pull request as ready for review May 20, 2026 22:39
@andreakiro andreakiro closed this May 25, 2026
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