Skip to content

Commit

Permalink
Puppeteer: Always tap Skip Tutorial link.
Browse files Browse the repository at this point in the history
Click does not work for some reason.
  • Loading branch information
raineorshine committed Apr 18, 2024
1 parent bac4255 commit fb4a1a6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/e2e/puppeteer/helpers/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@ const setup = async ({

// click the skip tutorial link
// tap for mobile devices, since fastClick uses touch events
const isMobile = emulatedDevice?.name.startsWith?.('iPhone')
await page[isMobile ? 'tap' : 'click']('#skip-tutorial')
await page.tap('#skip-tutorial')

// wait for welcome modal to disappear
await page.waitForFunction(() => !document.getElementById('skip-tutorial'))
Expand Down

0 comments on commit fb4a1a6

Please sign in to comment.