Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/test_render_conversations.py
Original file line number Diff line number Diff line change
Expand Up @@ -2326,9 +2326,9 @@ def test_a_cancelled_panel_press_does_not_suppress_the_next_focus_landing(
page.evaluate(BURY, 20)
page.evaluate(RENDERED)
before = page.evaluate("() => document.querySelector('.lf-threads').scrollTop")
assert (
page.evaluate(UNDER_HEADING)["covered"] >= 20
), "the setup did not put the first card under its heading"
assert page.evaluate(UNDER_HEADING)["covered"] >= 20, (
"the setup did not put the first card under its heading"
)

page.evaluate(
"""() => {
Expand All @@ -2344,9 +2344,9 @@ def test_a_cancelled_panel_press_does_not_suppress_the_next_focus_landing(
page.locator(".lf-threads").evaluate("el => el.focus({preventScroll: true})")
first.evaluate("el => el.focus({preventScroll: true})")
page.evaluate(RENDERED)
assert (
page.evaluate(COVERED_TOP) is not None
), "an unrelated pointer cancellation released the active panel gesture"
assert page.evaluate(COVERED_TOP) is not None, (
"an unrelated pointer cancellation released the active panel gesture"
)

page.evaluate(
"""() => dispatchEvent(new PointerEvent('pointercancel', {
Expand Down
Loading