Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 364e961

Browse files
committed
debugging
1 parent 677e3b1 commit 364e961

File tree

1 file changed

+2
-1
lines changed
  • examples/browser-service-worker/tests

1 file changed

+2
-1
lines changed

examples/browser-service-worker/tests/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,15 @@ play.describe('browser service worker:', () => {
3434

3535
// const currentURL = await page.url();
3636
await page.goto(`http://localhost:${servers[0].port}/ipfs/Qmf412jQZiuVUtdgnB36FXFX7xg5V6KEbSJ4dpQuhkLyfD`, {waitUntil: 'commit'});
37-
await page.waitForSelector('#viewer')
37+
await page.waitForSelector('#viewer', {state: 'visible'})
3838

3939
const frameText2 = page.frameLocator('#viewer').locator(textDOM)
4040

4141
// loop over all of the frames and log their content
4242
const frames = await page.frames();
4343
for (const frame of frames) {
4444
console.log('page.frames textContent: ', await frame.textContent(textDOM));
45+
console.log('page.frames innerText: ', await frame.innerText(textDOM));
4546
}
4647

4748
expect(await frameText2.textContent()).toContain("hello world")

0 commit comments

Comments
 (0)