Skip to content

test: expect #6860's return to the entry's record in three reload journeys - #7186

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-7172
Nov 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-7172

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#6860 puts the user back where each history entry's record says on every reload. Three nightly-only journeys still expected the arrival from before it. They have failed since that commit. Each test now expects what #6860 says a reload does, and keeps checking the behavior it protected:

  • test_words_typed_on_a_reload_stand_over_the_send_it_cut_short: the send took the user out of the comment box, so after the second reload the record no longer puts them back in it. Keep where the user was in each history entry, so Back, Forward and a reload return there #6860 dropped the c from _type_on_arrival and added it to the browser-tier sibling (…_over_a_resend_landing_after_a_rewrite) for this case. This journey imports that helper but wasn't updated. It now presses c the same way.
  • test_executable_revision_does_not_restore_a_new_draft_generation: the history.js header says the record's return puts the user back in a draft's box without checking the draft. Only the handoff's restore stands down once another tab has rewritten it. So focus comes back to the reply. The test no longer expects no editing session. It checks that the box holds the other tab's generation (its attempt and words, from the drafts store), and still checks that the stored draft is the other tab's.
  • test_an_emptied_rewrite_keeps_nothing_and_saved_deletes_its_message: the reload now puts the user back in the rewrite, which holds the message's own words and nothing kept (the failing run's screenshot shows that box open). The old dblclick timed out on message text that the open editor replaced. The test now checks that the open box is focused and holds the message's words.

None of these changes Leaf's behavior. They follow #6860's stated intent, so the repair gives none of it up. All three failed on main at 32dc564a8 with the errors in #7172. With this change, each passed in three runs in a row.

Closes #7172 — automated triage

…rneys

#6860 puts the user back where each history entry's record says on every
reload. Three journeys, which run only nightly, still expected the old
arrival:

- The cut-short send's second reload: the send took the user out of the
  comment box, so the record no longer puts them there. The test presses
  `c` first, as #6860 did for the browser-tier sibling.
- The executable revision over another tab's draft generation: the
  record's return puts the user back in the reply, which the history.js
  header states it does without checking the draft. The test now checks
  the box holds the other tab's generation from the drafts store.
- The emptied rewrite: a reload puts the user back in the rewrite, which
  holds the message's own words, so the test checks that box rather than
  double-clicking a message that is already open for editing.

Closes #7172
@max-sixty
max-sixty merged commit 0862494 into main Nov 25, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/issue-7172 branch November 25, 2026 18:29
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.

Three draft and thread journeys fail after a reload since #6860 restores each history entry's place

2 participants