Skip to content

test: match the nested-obligation test's selected replace to the labelled option tag - #6328

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-3985-label-stale-tests
Nov 18, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-3985-label-stale-tests

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

#6289 gave <lf-option id="out-drill"> in NESTED_OBLIGATION_PAGE a label, so test_a_nested_obligations_pick_is_not_part_of_its_outers_record stopped matching it when it replaced the exact tag <lf-option id="out-drill">. Nothing was marked selected, the outer question showed as overridden, and the test failed on main in push run 44182772749. The replace now matches the tag's opening, so the test checks its original behavior again. Only the test changes. It fails on current main and passes on this branch when run by node id.

The same run had two other failures with the same cause: test_the_gate_passes_a_page_that_carries_a_comment and test_board_moves_preserve_live_sample_and_control_state. #6325 fixed those when it restored the <strong> titles in their fixtures, and both pass on current main.

Three more failures in that run come from #6289 but need a decision rather than a test edit: work goals and atlas tasks were named by their leading <strong>, and they take no label. They are filed separately.

Refs #3985

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#6325 merged after this branch was cut, and it did touch these fixtures. It put <strong>Signed tokens</strong> back inside #opt-b in INLINE_PAGE, and <strong>Heated perch</strong> back inside #card-heater in BOARD_PAGE. On current main, #opt-b strong resolves again and test_board_moves_preserve_live_sample_and_control_state finds its insertion point again. So the edits to test_render_commands.py and test_render_widgets.py are no longer needed. The tree-walker edit also adds code the original selector didn't need.

The nested-obligation fix is still needed: on main, <lf-option id="out-drill"> still doesn't match <lf-option id="out-drill" label="The revocation drill">. I'll rebase onto main, keep only that edit, and update the title and body.

…lled option tag

The nested-obligation test added selected by replacing <lf-option id="out-drill">, but #6289 gave that option a label, so the replace no longer matched. It now matches the opening of the tag.
@leaf-agent
leaf-agent force-pushed the fix/issue-3985-label-stale-tests branch from 1f588b9 to 56218db Compare November 18, 2026 00:28
@leaf-agent leaf-agent changed the title test: match three browser tests to the label titles #6289 wrote into their pages test: match the nested-obligation test's selected replace to the labelled option tag Nov 18, 2026
@leaf-agent
leaf-agent merged commit d1d67de into main Nov 18, 2026
6 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-3985-label-stale-tests branch November 18, 2026 00:49
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.

1 participant