From d5ec67de259f5fb3baae9675d8220a4a543294bc Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 24 Mar 2024 19:36:08 -0700 Subject: [PATCH] . --- tests/main.spec.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/main.spec.js b/tests/main.spec.js index 8dc3a00..57316bc 100644 --- a/tests/main.spec.js +++ b/tests/main.spec.js @@ -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()