Skip to content

test_a_control_a_widget_built_is_told_from_a_label_it_wrote: spent controls look the same as armed since 017ddeccf..10ac9da49 #6837

Closed

Description

@leaf-agent

tests/browser/widgets/test_lifecycle_and_controls.py::test_a_control_a_widget_built_is_told_from_a_label_it_wrote has failed on main since a commit between 017ddeccf (passed) and 10ac9da49 (failed in run 45104895190). The commit isn't bisected yet.

The assertion that fails: each spent (disabled/aria-disabled) control must look different from how it looks with its disabled state lifted (face != armed). In the run, several spent controls read opacity: 1 with the same ink in face and armed on the element itself. Those controls differ only in their ::before (the compose submit's disc), and in one entry not even there. #6801 (10ac9da49) changed which of the composer's end press, Dictate and Send stands in a field's corner, and when, so it is the first candidate. #6800 (52258cd8b) also touched the composer's styles.

Next: git bisect run over this node id in 017ddeccf..10ac9da49, then decide from the bisected change whether the spent face moved on purpose (the test reads the wrong control) or a spent control now looks live.

Cause of a failure tracked in #6833.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    Bisected to #6801 (10ac9da49): 52258cd8b passes and 10ac9da49 fails, and the failure still reproduces on main at 49007d755. #6841 fixes the test.

    The face that didn't change is the floating panel field's resting Dictate. #6801 now hides it with the hidden attribute, where the panel used to hide it with CSS. Dictate's command is available only while the button isn't hidden, so the keyboard scope marks it aria-disabled="true". A disabled disc keeps Dictate's quiet ink at full opacity, so lifting the disabled state changed nothing. A hidden press draws nothing, so #6841 leaves hidden presses out of the comparison, and the test passes again on current main and at 52258cd8b. Spent controls that are drawn are still checked. The review and landing workflows own the PR's CI and merge from here.

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