Repository navigation
test: hold the file editor's Retry read, not a save, in the conflict journey - #7416
Conversation
…journey #7314 made Retry after a save with no answer read the file before it sends again, since that save may have reached the file. The journey's last section held the POST it expected Retry to send, but Retry now reads first, the read clears the failure, and the save that follows runs without a Retry button, so the focused-Retry assertion found none. The section now holds Retry's read, moves the file on disk, and releases the read: the read finds the conflict, Retry disappears and typing returns to the editor, the behavior the section protects. Closes #7407
|
@leaf-agent Please revise this journey to use its existing
|
The conflict section now reuses hold_reads and held_reads, and waits with the shared holding() helper rather than a second handler and a window.heldFileReads counter, which duplicated those controls and could miss two quickly collected reads.
|
Done in 6e36463. The Retry step now clears |
test_file_editor_saves_quietly_and_preserves_inflight_editshas failed since #7314, which made Retry after a save with no answer read the file before sending again, because that save may have reached the file. The journey's last section still held the POST it expected Retry to send. Retry now reads first, the read clears the failure, and the save that follows runs with no Retry button, soexpect(retry).to_be_focused()found no element.The section now holds Retry's read instead, moves the file on disk, and releases the read. The read finds the conflict, Retry disappears, and typing returns to the editor. That is the behavior the section protects ("When a focused Retry becomes a conflict, the disappearing button returns typing to the retained editor"), now reached through #7314's read-first path. The change touches only the test and moves no product behavior, so it keeps all of #7314's intent.
Verification: on
mainthe test fails at line 343 withelement(s) not found, the error in the issue. With this change it passes in two runs, run by node id on Linux.Closes #7407 — automated triage