Repository navigation
test: expect #6860's return to the entry's record in three reload journeys - #7186
Merged
Merged
Conversation
…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
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.
#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 thecfrom_type_on_arrivaland 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 pressescthe same way.test_executable_revision_does_not_restore_a_new_draft_generation: thehistory.jsheader 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 olddblclicktimed 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
mainat32dc564a8with the errors in #7172. With this change, each passed in three runs in a row.Closes #7172 — automated triage