Skip to content

Commit 2791d78

Browse files
committed
fix: wait for 2FA selector
1 parent 5c55462 commit 2791d78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/publish.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ export const publishFirefoxExtension = async (
100100
}
101101
if (await page.evaluate(/* istanbul ignore next */ () => location.pathname === '/inline_totp_setup')) {
102102
logger.log('Cancelling 2FA setup')
103+
await page.waitForSelector('.totp-cancel')
103104
await Promise.all([page.waitForNavigation(), page.click('.totp-cancel')])
104105
}
105106
}

0 commit comments

Comments
 (0)