Repository navigation
test: find the margin status test's probe entry by its key, not a className - #5535
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_an_acknowledgment_uses_status_until_an_active_claim_restores_a_disclosurehas failed on main withUnknown contribution entry option: classNamesince #5329 (078ad7e), not #5336 as the issue's bisect concluded. #5336 changed onlybrowser/runtime/chrome.js. #5329 deliberately droppedclassNamefrom contribution entries ("Margin entries take noclassName" in its description) and moved its tests todata-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 ownerworkflow-primary-probeand keyedit. 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