You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test_file_editor_saves_quietly_and_preserves_inflight_edits: a failed save shows no Retry since #7314 #7407
tests/journeys/test_render_files.py::test_file_editor_saves_quietly_and_preserves_inflight_edits passes at d4b395046 and fails at 72ccedf8f (#7314, "Keep a hosted page's whole directory, and answer a file save once the store holds it"). I bracketed it by running the test by node id on Linux at both commits. It still fails on main at 3fa2e5a17, and it failed on macOS in scheduled run 45985529285 on 21c613f05. Journeys run only in the scheduled suite, so the introducing pull request's CI didn't run it. Apply Reading a red suite in running-tend to the introducing change's intent before choosing whether the test or the code moves.
Deciding error:expect(lf-file-editor … button "Retry").to_be_focused() finds no Retry button at all (element(s) not found). The teardown then reports the page's console error, Failed to load resource: the server responded with a status of 409 (Conflict) — /api/files/notes. The test drives a failed save and expects the editor to offer Retry, keeping the buffer editable. Since #7314 answers a save only once the store holds it, the failure the test induces now seems to come back as a 409 conflict, which the editor doesn't present as a failed write with Retry. That is inferred from the two messages and not traced yet. The next step is to compare the response the test's failing save gets before and after #7314.
I reproduced this on main, and #7416 fixes it in the test. The cause is in the test, not the editor. Since #7314, Retry after a save with no answer reads the file before sending again, and that read clears the failure. So the save that follows runs with no Retry button, and the journey, which held the POST it expected Retry to send, found no Retry to check for focus. The 409 in the teardown came from the earlier conflict sections, which the test had already accepted.
#7416 holds Retry's read instead, moves the file, and releases the read. The read finds the conflict, and typing returns to the editor, as the section intends. The test fails on main and passes with the change, run locally on Linux. Its CI and landing are left to the PR's own workflows.
Activity
leaf-agent commentedon Nov 27, 2026
I reproduced this on
main, and #7416 fixes it in the test. The cause is in the test, not the editor. Since #7314, Retry after a save with no answer reads the file before sending again, and that read clears the failure. So the save that follows runs with no Retry button, and the journey, which held the POST it expected Retry to send, found no Retry to check for focus. The 409 in the teardown came from the earlier conflict sections, which the test had already accepted.#7416 holds Retry's read instead, moves the file, and releases the read. The read finds the conflict, and typing returns to the editor, as the section intends. The test fails on
mainand passes with the change, run locally on Linux. Its CI and landing are left to the PR's own workflows.