Repository navigation
test: update five browser tests for #6060's change that keeps each draft with its own target - #6115
Merged
Merged
Conversation
#6060 changed three behaviours that five browser tests outside tests/browser/drafts/ still asserted the old way, so main's push ci went red on them: - An explicit Comment on another target opens that target's own draft instead of carrying the open words there. The aim, reactions and semantic-selection tests now expect the new target's empty box, and the semantic-selection test checks the heading kept its words. - The On Me mark opens Threads where nothing is on the user but a put-away draft waits; the restore-selection test waits for Threads. - A served page keeps browser state under its data-lf-page-scope prefix; the refused-storage test reads the scope to name the session key. Behaviour unchanged; each test now asserts what #6060 intended. Refs #3985
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.
#6060 ("Keep each draft with what it is about…") changed three draft behaviours on purpose and updated the tests under
tests/browser/drafts/, but five browser tests elsewhere still asserted the old behaviour. Pull requests don't run that tier, so they first failed in main's pushci(run 43801680826,71044e73f). This PR updates them to what #6060 intended. No product code changes.test_render_aim.py::test_the_aim_still_promises_while_a_composer_is_opentest_render_reactions.py::test_plain_clicks_stay_native_and_explicit_gestures_comment_on_visualstest_render_semantic_selection.py::test_a_keyboard_comment_gesture_carries_the_current_unsent_draft→…_opens_its_targets_own_draftnavigation/test_reading_place.py::test_restore_selection_has_touch_route_and_does_not_carry_draftpressMark)startup/test_readiness.py::test_refusing_the_storage_objects_does_not_block_startuptabStore.wherenames the bare keydata-lf-page-scopeprefixBefore this change, all five failed locally on
origin/main(81904bdec) with the same diagnostics as CI. With it, all five pass. #6091 already updatedtest_revision_patches.pyfor the "1 draft unsent" mark label from the same run.Refs #3985 — automated triage