Skip to content

Commit

Permalink
Fix element view test for PR 440
Browse files Browse the repository at this point in the history
  • Loading branch information
NateLanza committed Jan 22, 2025
1 parent 4712a9c commit a20852e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e-tests/elementView.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ test('Element View', async ({ page, browserName }) => {

// Check that the selection chip is visible after selecting
await elementViewToggle.click();
await dragElement(page.locator('canvas'), 150, 0, page);
// 120 is exactly enough to select through Age 10 but not drag off the canvas, which doesn't fire the click event
await dragElement(page.locator('canvas'), 120, 0, page);
// For some reason, in firefox, the dragElement() method doesn't quite work right and the end of the drag
// is off the element, which doesn't fire the select handler. Clicking the canvas in firefox fires the event,
// but clicking in chromium/webkit resets the selection & breaks the test
Expand Down

0 comments on commit a20852e

Please sign in to comment.