Repository navigation
test: pick the On <agent> tab by title-case On Me in the page-holds-still journey - #5740
Merged
Merged
Conversation
…till journey #5633 renamed the user's list On me to On Me and updated this journey's "On Me" tab press, but left the regex that picks the other tab as ^\s*On (?!me). Regex matching is case-sensitive, so it matched both "On Me 14" and "On Claude", and the click failed on Playwright's strict mode in both on-me-turned-back-ask cases. The lookahead now excludes Me. No behavior changes; the journey again exercises the turn-back. Refs #4225
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#5633 renamed the user's list "On me" to "On Me" and updated this journey's press on the "On Me" tab, but left the regex that picks the other tab as
^\s*On (?!me). Playwright's regex text match is case-sensitive, so the lookahead no longer excluded "On Me 14", and the click resolved to both tabs and failed on strict mode. That broke bothtest_the_page_holds_still_under_the_user[on-me-turned-back-ask-chromium]and[on-me-turned-back-ask-firefox]on Linux and macOS in scheduled run 42473165114. The lookahead now excludesMe. Nothing else changes, and the journey again turns On Me to On Claude and back.Both cases fail locally on main with the strict-mode error before the change and pass after it (
uv run pytest --run-nightly tests/journeys/test_page_holds_still.py -k on-me-turned-back-ask). No other test intests/keeps a case-sensitive pattern on the old "On me" label.Refs #4225 — automated triage