Repository navigation
test: assert the slim comment box's held edge, not its old full width - #7348
Merged
Merged
Conversation
#7329 opens every comment box and card at 320 px and widens each away from the inline edge its placement holds. Five browser tests still asserted the full-width box, and they have failed on every main run since. This keeps #7329's intent and updates what each test protects: - The two growing-comment tests in test_render_aim.py now check that the held edge stays put as the box grows. Before, they checked the left edge, which a box held by its right edge moves by design. - The caret test now checks that the box opens slim and widens with its first line up to the wrapped measure, instead of holding one width. Its guarantee, that a caret at a line's end paints inside the field, still passes in Chromium and Firefox. - The datum-relabel test now checks that the relabel leaves the opened quote exactly as it was, whole or scrolling in its own share. In a 320 px card its 780-character quote scrolls inside its share of the card, as annotation-chrome.css designs a long opened quote to. HELD_EDGE moves to render_cases_interaction.py so the aim and send-placement tests read the held edge through one definition. Closes #7347
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.
#7329 opens every comment box and card at 320 px and widens each away from the inline edge its placement holds. Its message accepts that a box held by the edge its words end at grows toward their start. Five browser tests still asserted the full-width box and have failed on every
mainrun since (run 45920651738). This PR changes only tests, keeping #7329's intent and the behaviour each test protects:test_render_aim.py, the two growing-comment tests. These now assert that the box's held inline edge stays put as it grows, read fromfloating.js'sheldedges. Before, they asserted the left edge. In both fixtures the box stands by its right edge (708.5 + 320 = 436.5 + 592), so the left edge moves by design.test_a_caret_is_drawn_at_a_lines_end_and_after_a_list_bullet, both engines. "The box neither narrows to its words nor widens as they arrive" is now "the box opens slim and widens with its first line, up to the wrapped measure" (320 → 570.75 → 592 px). The guarantee the subtest exists for still passes in Chromium and Firefox: a caret at a line's end paints inside the field (CARET_ROOM), at the widened box and at a narrow window.test_a_changed_datum_keeps_its_old_words_open_when_its_label_changes. The relabel must leave the opened quote exactly as it was: still expanded, the same size, and either whole or scrolling. At 592 px the 12-sentence quote fit whole. In the 320 px card it scrolls inside its own share (362 px of words in 259 px).annotation-chrome.cssdesigns an opened quote to scroll this way rather than push the reply out of the card.HELD_EDGEmoves fromtest_render_send_placement.pytorender_cases_interaction.py, so the aim and send-placement tests read the held edge through one definition.Verification. Run by node id, all five failed on this base (
983d688fe) with the messages in #7347 and pass after the change.test_a_box_held_by_its_right_edge_opens_slim_and_widens_toward_its_start, whose constant moved, also passes.For a reviewer to weigh. In the datum test the card is capped at
max-height: 425pxin a 900 px window, so a long opened quote scrolls even though the window has room below. That cap comes from the card's placement room, not from #7329. With a 592 px card nobody saw it. I haven't traced it further, and this PR doesn't change it.Closes #7347 — automated triage