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 a38809f commit d5ec67d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ module.exports = (async () => {
await test.step('popup should load', async () => {
await page.goto(`chrome-extension://${serviceWorker.url().split('/')[2]}/dist/index.html`)
await page.bringToFront()
await page.waitForSelector('body')
console.log(await page.evaluate(() => document.body.innerText));

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

0 comments on commit d5ec67d

Please sign in to comment.