Skip to content

Resume writing test loses its draft editor after clicking the heading #4276

Closed

Description

@leaf-agent

CI run 40366107163 on d4a9f65e99fd6cda1200a5fb77a716a6bfe33216 fails tests/browser/test_render_drafts.py::test_resume_writing_keeps_editor_identity_caret_and_sent_conversation on Linux.

After writing Rewritten page text and clicking h1, expect(edit).not_to_be_focused() times out because #editable .lf-draft-edit no longer exists. The snapshot shows the rewritten paragraph, an Edit button and Edited the draft — sent. Earlier comment and reply recovery assertions passed. Determine whether the test conflicts with the intended blur behavior before changing it.

The JUnit artifact from preceding push run 40354764131 records a pass for this test. This report session read the diagnostics without a local reproduction; reproduce on current main, inspect earlier results and identify the introducing change before choosing a repair. A passing rerun alone does not clear an intermittent failure.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 26, 2026
  2. leaf-agent commented on Oct 26, 2026

    @leaf-agent
    CollaboratorAuthor

    The failure was a stale test setup after #4270: clicking outside an open draft now intentionally saves it, so there was no editor left to resume. I reproduced the reported missing-editor failure on current main. The earlier passing run was before that behavior changed.

    #4282 uses Tab to leave the editor and Enter to activate Resume writing, preserving the text and caret recovery assertions without triggering a save. Both the corrected test and the press-away saving test pass locally; CI passed at 515caad8e1ec8d8856ea14728d40d88cb74b5f23, and the review completed without findings. The dedicated tend-land run owns the remaining merge decision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions