Skip to content

test: find a suggestion's Accept and Reject by margin entry key - #5536

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-5483
Nov 5, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-5483

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

#5329 removed the margin entry's className option, so a suggestion's Accept and Reject in the margin no longer carry .lf-sug-accept / .lf-sug-reject. That PR moved the other tests to data-lf-margin-entry-key, but test_a_widget_naming_its_own_words_does_not_read_the_runtimes still clicked .lf-sug-{outcome} and timed out waiting for it. It now finds both controls by [data-lf-margin-entry-key={outcome}], the same way the rest of test_suggestions.py does. No product behavior changes, and #5329's intent is unaffected.

Locally the test fails on main (Locator.click: Timeout … waiting for locator("[data-lf-margin-for='sug'] .lf-sug-accept")) and passes with this change. No other test in tests/ or dev/ still names .lf-sug-accept or .lf-sug-reject.

Closes #5483 — automated triage

#5329 removed the margin entry's className option, so the margin's
Accept and Reject no longer wear .lf-sug-accept / .lf-sug-reject, and
tests find them by data-lf-margin-entry-key. One test still clicked the
old class and timed out. No behavior changed.

Closes #5483
@max-sixty
max-sixty merged commit fe8f807 into main Nov 5, 2026
6 checks passed
@max-sixty
max-sixty deleted the fix/issue-5483 branch November 5, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_a_widget_naming_its_own_words_does_not_read_the_runtimes fails on main since #5329

2 participants