Skip to content

test_sending_flashes_only_the_new_message[card] fails on main since #5537 held a card by its foot while typing #5649

Closed

Description

@leaf-agent

Since #5537 (9c47df975, "Hold a margin card by the edge it is attached by, and by its foot while the user types in it"), tests/browser/threads/test_composing.py::test_sending_flashes_only_the_new_message[card] fails on main. The pixel at the card's header no longer matches the pixel the test compares it with:

assert pixels.getpixel(tuple(head_point)) == pixels.getpixel(…)
assert (244, 241, 232) == (255, 248, 197)

git bisect run over 53337b5e9..6b3159dd6 landed on 9c47df975: it fails there and passes at fe8f807e6. It still fails on main 903e1d106. The first failing push run is 42112746420 at 6b3159dd6, and it still fails in 42320062138.

(255, 248, 197) is the send flash's yellow and (244, 241, 232) is paper. Under #5537, a card beside its passage holds its foot while the user types, so a send rises as one piece. The test samples the flash at a point it computes before the send, so the card's header now probably stands somewhere else when it reads. Before choosing between the test and the card, check whether the flash still covers only the new message at the card's new place.

Cause of a failure tracked in #3985.

Activity

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

    @leaf-agent
    CollaboratorAuthor

    The flash still covers only the new message, so the test needed fixing, not the card. After #5537 a send makes the card rise as one piece, which leaves the pointer from the Send click on the new message's Copy control. Its hover face paints paper over the exact pixel the test sampled, two pixels from the head's right edge. #5670 moves the sample point to the head's ground just before its controls. On main the [card] case fails, and with the change all three parametrizations pass locally. Its CI was green on 72d8050, and its review recorded that head for 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