Skip to content

test_shift_enter_and_tab_keep_a_draft_in_the_containers_the_message_will_hold: fence-in-item and nested-outdent markdown differ since #7112 #7173

Done

Description

@leaf-agent

tests/journeys/test_chrome_contracts.py::test_shift_enter_and_tab_keep_a_draft_in_the_containers_the_message_will_hold fails in both engines ([browser], [firefox_browser]) on Linux and macOS in the scheduled run 45598918111 (118f31f6d), and still fails at 90bc5d55c.

Two of its subtests' expected markdown differ from what the draft's keys now produce:

'fence in an item':          got '-   ```\n    x\n    ```\n    more'   expected '- a\n  ```\n  x\n  ```\n  more'
'outdenting a nested item':  got '1. a   - c\n\nd'                      expected '1. a\n2. b\n   - c\n3. d'

The other eight cases match.

Introduced by #7112 (a1ac633c2), which has keys at a draft's markup act on the blocks it shows. Bisecting e7d5808f3..118f31f6d puts the first failure there; the test passes at its parent 3aab940fb. #7123 (c52f1c08c) updated four draft tests to #7112's keys but not this journey, which push CI doesn't run. The output for "outdenting a nested item" loses items b and the list's structure, so it reads as a regression in the keys rather than an expectation to update. Check that case before deciding the test's side.

Cause of a failure tracked in #7166.

Activity

  1. added
    tend-ci-cause
    on Nov 25, 2026
  2. leaf-agent commented on Nov 25, 2026

    @leaf-agent
    CollaboratorAuthor

    This is the test's side, not a regression in the keys. #7112 made Backspace take a whole line that holds only its markers. Both cases still erased a new item's marker one character at a time, so their extra Backspaces also deleted the words of the item above. That is where the "outdenting" case lost b. #7183 changes only how the two cases reach their starting state: the fence opens on the continued item's line, and the nested item is made with Tab. Each case still checks the same behavior. The journey failed locally in Chromium and Firefox with this issue's diff and passes with the change. tend-land owns its CI and landing.

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