Skip to content

test: find the margin status test's probe entry by its key, not a className - #5535

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-5482
Nov 5, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-5482

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure has failed on main with Unknown contribution entry option: className since #5329 (078ad7e), not #5336 as the issue's bisect concluded. #5336 changed only browser/runtime/chrome.js. #5329 deliberately dropped className from contribution entries ("Margin entries take no className" in its description) and moved its tests to data-lf-margin-entry-owner / data-lf-margin-entry-key, but it missed this test's pickup-carrier probe. The two commits landed a minute apart, which is probably why the bisect pointed at the wrong one.

The probe now registers its entry without className, and the test finds the carrier by owner workflow-primary-probe and key edit. The assertions are unchanged, so the test still covers what it protected: a semantic action carries pickup, and removing it brings back the status marker. Nothing in the product changes.

Verification: the test fails on current main with the reported error and passes with this change (uv run pytest tests/browser/margin/test_status.py::test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure).

Closes #5482 — automated triage

…ssName

#5329 removed the `className` option from contribution entries, so a margin
entry carries no class its caller chose and tests find one by
`data-lf-margin-entry-owner` and `data-lf-margin-entry-key`. That change moved
45 locators but missed the pickup-carrier probe in
`test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure`,
which still passed `className` and so failed with "Unknown contribution entry
option: className". The probe now omits it and the test locates the carrier by
its owner and key. The behavior the test protects is unchanged.

Closes #5482
@leaf-agent
leaf-agent merged commit e72d7aa into main Nov 5, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-5482 branch November 5, 2026 20:00
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_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosure fails on main since #5336

1 participant