Repository navigation
test: match the board, drawing-proxy and options-search tests to #6325, #6332 and #6344 - #6343
Conversation
…ests to #6325 and #6332 Push run 44218332042 on 25e1850 failed three tests that the changes since the last diagnosed run broke. - test_a_board_says_which_column_each_card_is_in: #6325 put an option's and a board card's title back in the author's leading <strong>, but quietWord still seated the provenance word after a [data-lf-said="label"] title, which a card no longer has. The word moved to the card's start, so a screen reader heard "my change" before the card's title. quietWord seats it after the card's <strong> again, as before #6289, and the test's snapshots read the title as the strong it now is. - test_a_drawing_names_its_proxies_and_keeps_its_place_among_the_page: #6332 names every part of an inline drawing "figure", so the proxies read "Responses to figure · Gallery". The test expects that. - test_page_search_finds_a_shipped_options_chip_and_title_apart is deleted. It searched the shipped lf-options example for an option's title and a chip that touch with no text between them. Since #6325 the chips come before the title, separated by an authored space, so that example no longer has such a pair. The option-chip case of test_page_search_finds_words_css_draws_apart_with_nothing_between_them still covers a chip and a title that touch. Refs #3985
leaf-agent
left a comment
There was a problem hiding this comment.
This conflicts with #6344, which max-sixty opened a minute later. That PR deletes quietWord's title lookup and always seats the quiet word at the element's start. This one reinstates a :scope > strong lookup, so they can't both land as written. Choosing between them means choosing between two goals. One is reading order: a card's provenance word ("my change") after its title, which this PR restores. The other is "Read what the page states": no reading of <strong> as a title, which #6289 and #6344 apply. Seating the word at the end of the element would keep the title first without reading the markup, but it moves the word after the card's prose. That is a call for the maintainer, so I'm not pushing either version.
The other two test changes are independent of this question. The figure proxy name and the deleted options-search test match #6332 and #6325, and test_page_search_finds_words_css_draws_apart_with_nothing_between_them's option-chip case still covers a chip and a title with nothing between them. They could land on their own if the quietWord change waits.
# Conflicts: # browser/runtime/declared-words.js
leaf-agent
left a comment
There was a problem hiding this comment.
#6344 merged at 04:25, deleting quietWord's title lookup ("quietWord's lookup of a drawn title goes with it"). The base merge 9a417a49d resolved its conflict in browser/runtime/declared-words.js by keeping this PR's :scope > strong lookup, so landing this would undo a maintainer's merged decision and bring back a markup reading that "Read what the page states" rules out. The selector also matches any direct <strong>, not only a leading one, so the word can land mid-sentence.
I'm pushing a fix that takes main's quietWord and changes test_a_board_says_which_column_each_card_is_in's second snapshot to match what main draws: the quiet word comes before the card's strong title. Moving the word after the title without reading the markup is a separate question for the maintainer and isn't part of this CI repair.
…re its title The merge of main kept this branch's :scope > strong lookup over #6344, which deleted quietWord's title lookup. Take main's quietWord, and update test_a_board_says_which_column_each_card_is_in's second snapshot to what main draws: the quiet word "my change" before the card's strong title.
Push run 44218332042 on
25e18501ffailed three tests that changes since the last diagnosed run broke. Each test expected behavior that a merged change deliberately moved, so this PR updates the tests and leaves the runtime asmainhas it.test_a_board_says_which_column_each_card_is_in: snapshots updated. Show an option's and a board card's title as its author's HTML, with label as its name alone #6325 put a board card's title back in the author's leading<strong>, and Draw no caption from a sample's label, and mark a column heading by its class #6344 deletedquietWord's title lookup, so the screen-reader-only provenance word sits at the card's start. The snapshots now read the title as thestrongit is, with "my change" before it after a move.test_a_drawing_names_its_proxies_and_keeps_its_place_among_the_page: test updated. Mark a drawing's part that draws no shape, and call a drawing's part a figure #6332 calls every part of an inline drawing a "figure", so the proxies now read "Responses to figure · Gallery".test_page_search_finds_a_shipped_options_chip_and_title_apart: test deleted. It searched the shippedlf-optionsexample for a title and a chip with no text between them. Since Show an option's and a board card's title as its author's HTML, with label as its name alone #6325 the chips come before the title, with an authored space between them, so the example no longer has such a pair. The option-chip case oftest_page_search_finds_words_css_draws_apart_with_nothing_between_themstill covers a chip and a title with nothing between them.The quiet word now comes before a card's title, so a screen reader hears "my change Squirrel baffle". Placing it after the title without reading
<strong>as a title is a question for the maintainer and isn't part of this repair.The first two tests fail on
mainand pass on this branch locally. The fourth failure in the run,test_a_root_summary_keeps_thread_actions_outside_its_fold[1440-False-2], is #6139, which is assigned to the maintainer.Refs #3985 — automated triage