Skip to content

Commit

Permalink
Seeing if dispatch event fixes mobile safari
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyBDev committed Feb 10, 2024
1 parent 26b981b commit 3f70aec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/example.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ test('check social buttons', async ({ page }) => {

// Start waiting for new page before clicking. Note no await.
const pagePromise = context.waitForEvent('page');
await page.getByRole('button', { name: 'LinkedIn' }).click();
await page.getByRole('button', { name: 'LinkedIn' }).dispatchEvent('click');
const newPage = await pagePromise;
await newPage.waitForLoadState();
await expect(newPage).toHaveURL(/www.linkedin.com/);
Expand Down

0 comments on commit 3f70aec

Please sign in to comment.