Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
june07 committed Jul 8, 2024
1 parent 6918e0f commit b2a6d4b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/license.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = (async () => {
await (await page.locator(ids.inputs.port)).type(`${port}`)
await (await page.locator(ids.inputs.host)).press('Enter')

await page.evaluate(async () => await chrome.storage.session.set({ showingSubscriptionMessage: undefined }))
await page.evaluate(async () => await chrome.storage.session.remove('showingSubscriptionMessage'))

let showingSubscriptionMessage, tries = 0
while (!showingSubscriptionMessage && tries < 10) {
Expand All @@ -76,8 +76,7 @@ module.exports = (async () => {
await new Promise(r => setTimeout(r, 500))
}

// expect(showingSubscriptionMessage).toBeNull()
expect(showingSubscriptionMessage < (Date.now() + 7 * 60000)).toBeTruthy()
expect(showingSubscriptionMessage).toBeUndefined()
})

process.kill()
Expand Down

0 comments on commit b2a6d4b

Please sign in to comment.