Skip to content

Commit b114576

Browse files
committed
test(extension): wait for the page access action
1 parent 720a808 commit b114576

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
@@ -715,10 +715,9 @@ try {
715715
)
716716
await page.goto('https://ungranted.example/')
717717
await capture()
718-
await panel
719-
.getByRole('status')
720-
.filter({ hasText: /access|permission|cannot/i })
721-
.waitFor()
718+
await expect(
719+
panel.getByRole('button', { name: 'Allow across websites', exact: true })
720+
).toBeEnabled()
722721
assert((await snapshots()).length === 3, 'Unpermitted page was captured')
723722
})
724723
await check('Changing the receiving conversation expires an undelivered capture', async () => {

0 commit comments

Comments
 (0)