Skip to content

Commit

Permalink
Fix webkit issues with playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate Lanza committed Apr 4, 2024
1 parent 37086ba commit 024a6d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions e2e-tests/plot.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ test.beforeEach(async ({ page }) => {
*/
async function toggleAdvancedScale(page) {
await page.getByText('Size', { exact: true }).click({
button: 'right'
button: 'right',
force: true,
});
await page.getByRole('menuitem', { name: 'Toggle Advanced Scale' }).click();
}
Expand Down Expand Up @@ -85,7 +86,7 @@ test('Size header', async ({ page }) => {
// Ensure that dragging the advanced slider works
await toggleAdvancedScale(page);
await page.locator('g').filter({ hasText: /^0055101015152020Size001122334455$/ }).locator('rect').nth(1).
dragTo(page.getByText('15', { exact: true }).nth(1));
dragTo(page.getByText('15', { exact: true }).nth(1), {force: true});
await expect(page.getByText('15').nth(3)).toBeVisible();

// Ensure that adding sets doesn't affect the advanced scale
Expand Down

0 comments on commit 024a6d6

Please sign in to comment.