Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
june07 committed Mar 25, 2024
1 parent 76abef9 commit a38809f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions tests/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,9 @@ module.exports = (async () => {
await page.goto(`chrome-extension://${serviceWorker.url().split('/')[2]}/dist/index.html`)
await page.bringToFront()
await page.waitForSelector('body')
await page.waitForFunction(
(expectedText) => document.body.innerText.includes(expectedText),
{},
appName
)
console.log(await page.evaluate(() => document.body.innerText));

await expect(page.locator('body')).toContainText(appName, { useInnerText: true })
await expect(page.locator('body')).toContainText(appName, { useInnerText: true, timeout: 10000 })
})
await test.step('LOCALHOST switch should be disabled', async () => {
await (await page.locator(ids.tab.localhost)).click()
Expand Down

0 comments on commit a38809f

Please sign in to comment.