Skip to content

Run the playwright tests against multiple browsers.#689

Open
tim-schilling wants to merge 3 commits intodevelopfrom
test-multiple-browsers
Open

Run the playwright tests against multiple browsers.#689
tim-schilling wants to merge 3 commits intodevelopfrom
test-multiple-browsers

Conversation

@tim-schilling
Copy link
Member

This also adjusts the playwright tests around using the drag_select. Webkit doesn't support that event, so a more basic approach was necessary.

tim-schilling and others added 3 commits February 14, 2026 09:37
drag_to() uses HTML5 drag events (dragstart/dragover/drop), but Viselect
listens for mousedown/mousemove/mouseup. This didn't work in WebKit, and
was also flaky in other browsers.

Replace drag_to() with a drag_select() helper that uses explicit mouse
events:
- scroll_into_view_if_needed() to ensure elements are visible
- Start at the top edge / end at the bottom edge of cells for full
  coverage of the selection rectangle
- Wait for the last cell to have the `selecting` class (the visual
  preview viselect applies during a drag) before releasing the mouse,
  confirming viselect has fully processed the selection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The onboarding flow test had the same drag_to() issue as the availability
test — Viselect listens for mousedown/mousemove/mouseup, not HTML5 drag
events. Moved drag_select() to conftest.py so both test files share it,
and replaced the drag_to + wait_for_timeout call in set_availability().

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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

Comments