Skip to content

Commit 113db58

Browse files
committed
test(extension): wait for the page access action
1 parent 24dcd7d commit 113db58

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎apps/extension/scripts/test-e2e.ts‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,10 +718,9 @@ try {
718718
)
719719
await page.goto('https://ungranted.example/')
720720
await capture()
721-
await panel
722-
.getByRole('status')
723-
.filter({ hasText: /access|permission|cannot/i })
724-
.waitFor()
721+
await expect(
722+
panel.getByRole('button', { name: 'Allow across websites', exact: true })
723+
).toBeEnabled()
725724
assert((await snapshots()).length === 3, 'Unpermitted page was captured')
726725
})
727726
await check('Changing the receiving conversation expires an undelivered capture', async () => {

0 commit comments

Comments
 (0)