Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
june07 committed Jul 6, 2024
1 parent e3cd6e1 commit 76435f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/license.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = (async () => {
test.afterAll(async () => {
patch({ restore: true })
})
test.describe(async () => {
test.describe.serial(async () => {
test(`${basename(__filename)} - Should show license message`, async ({ page, context, serviceWorker }) => {
const port = randomPort(1)[0]
const process = spawn('node', [`--inspect=${port}`, 'tests/hello.js'])
Expand Down Expand Up @@ -47,7 +47,7 @@ module.exports = (async () => {
process.kill()
})
})
test.describe(async () => {
test.describe.serial(async () => {
test(`${basename(__filename)} - Should NOT show license message`, async ({ page, offlineContext: context, serviceWorker }) => {
const port = randomPort(1)[0]
const process = spawn('node', [`--inspect=${port}`, 'tests/hello.js'])
Expand All @@ -71,7 +71,7 @@ module.exports = (async () => {
await (await page.locator(ids.inputs.host)).press('Enter')

let subPage, tries = 0
while (!subPage && tries < 3) {
while (!subPage && tries < 10) {
tries += 1
subPage = (await context.pages()).find(page => /https:\/\/june07.com\/nim-subscription/.test(page.url())) ? true : false
await new Promise(r => setTimeout(r, 500))
Expand Down

0 comments on commit 76435f1

Please sign in to comment.