Repository navigation
test: check that Go-to displaces background news, not that the field stops saying a notice - #6523
Merged
Merged
Conversation
…stops saying a notice #6442 made Go-to armed with no hint in view say "No visible targets" in the panel field, and that word passes through the field's `notice` reading, as a filter's "No visible threads" already did. On NOTED_PAGE nothing shows a hint, so after `g` the field says "No visible targets · Close esc" under data-lf-says="notice", and the test's check on the reading's name failed. The behavior it protects is that Go-to takes the seat from the restored background news; it now asserts that the news is no longer said. Closes #6516
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.
#6442 made Go-to armed with no hint in view say "No visible targets" in the panel field (its description lists this under "Also from the survey"). That word passes through the field's
noticereading (browser/runtime/field-readings.js,passingWords), as a filter's "No visible threads" already did before #6442. OnNOTED_PAGEno hint shows, so aftergthe field readsNo visible targets · Close escwithdata-lf-says="notice", andtest_user_news_interrupts_and_then_restores_background_newsfailed on its check of the reading's name.The test exists to protect that Go-to takes the seat from the restored background news. It now asserts exactly that:
expect_panel_says(page, "Agent replied — open Threads", says=False). No product behavior changes; #6442's intent stands.The test fails on
dd38dcb16with the reportedActual value: notice, and passes with this change (uv run pytest "tests/journeys/navigation/test_key_surfaces.py::test_user_news_interrupts_and_then_restores_background_news" --run-nightly).Closes #6516 — automated triage