Skip to content

test: update five browser tests for #6060's change that keeps each draft with its own target - #6115

Merged
max-sixty merged 1 commit into
mainfrom
fix/drafts-stay-with-subject-tests
Nov 16, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/drafts-stay-with-subject-tests

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#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 push ci (run 43801680826, 71044e73f). This PR updates them to what #6060 intended. No product code changes.

Test Old assertion Now
test_render_aim.py::test_the_aim_still_promises_while_a_composer_is_open a second ⌥-press carries the typed words to the card the card's own box opens empty
test_render_reactions.py::test_plain_clicks_stay_native_and_explicit_gestures_comment_on_visuals Respond on a diagram part carries the figure's words the part's own box opens empty, named for the part
test_render_semantic_selection.py::test_a_keyboard_comment_gesture_carries_the_current_unsent_draft → …_opens_its_targets_own_draft the target picker carries the heading's words to the paragraph the paragraph's box opens empty, and ⌥-clicking the heading again brings back its words
navigation/test_reading_place.py::test_restore_selection_has_touch_route_and_does_not_carry_draft tapping the On Me mark opens On Me with nothing on the user and a draft put away, the mark opens Threads (pressMark)
startup/test_readiness.py::test_refusing_the_storage_objects_does_not_block_startup tabStore.where names the bare key the key carries the page's data-lf-page-scope prefix

Before this change, all five failed locally on origin/main (81904bdec) with the same diagnostics as CI. With it, all five pass. #6091 already updated test_revision_patches.py for the "1 draft unsent" mark label from the same run.

Refs #3985 — automated triage

#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
@max-sixty
max-sixty merged commit ed3d955 into main Nov 16, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/drafts-stay-with-subject-tests branch November 16, 2026 06:30
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.

2 participants