Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
silesky committed Apr 8, 2024
1 parent 92109f2 commit 8aa69b9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: browser-actions/setup-chrome@v1
with:
chrome-version: 120
- uses: actions/setup-node@v3
with:
node-version: 16
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ it('should send a consent changed event when user clicks accept on popup', async
await page.clickAcceptButtonAndClosePopup()

// 1 consent changed event should now be sent
await browser.waitUntil(() => page.getConsentChangedEvents().length === 1, {
interval: 500,
timeout: 20000,
timeoutMsg: `Expected 1 consent changed event to be sent, got: ${
page.getConsentChangedEvents().length
}`,
})
await browser.waitUntil(
() => {
return page.getConsentChangedEvents().length === 1
},
{
interval: 100,
timeout: 30000,
timeoutMsg: `Expected 1 consent changed event to be sent, got: ${
page.getConsentChangedEvents().length
}`,
}
)
})

0 comments on commit 8aa69b9

Please sign in to comment.