@@ -33,7 +33,7 @@ play.describe('browser service worker:', () => {
33
33
expect ( await page . textContent ( textDOM ) ) . toContain ( "Load content by adding IPFS path to the URL" )
34
34
expect ( await page . textContent ( linkDOM ) ) . toContain ( "/ipfs/bafy" )
35
35
36
- const ipfsRequestUrl = `http://localhost:${ servers [ 0 ] . port } /ipfs/Qmf412jQZiuVUtdgnB36FXFX7xg5V6KEbSJ4dpQuhkLyfD`
36
+ const ipfsRequestUrl = `http://localhost:${ servers [ 0 ] . port } /view/ ipfs/Qmf412jQZiuVUtdgnB36FXFX7xg5V6KEbSJ4dpQuhkLyfD`
37
37
38
38
/**
39
39
* Wait for the service worker to be ready
@@ -89,20 +89,20 @@ play.describe('browser service worker:', () => {
89
89
} ) ;
90
90
91
91
expect ( await serviceWorkerResponse . status ( ) ) . toBe ( 200 )
92
- expect ( await serviceWorkerResponse . text ( ) ) . toContain ( "iframe " )
92
+ expect ( await serviceWorkerResponse . text ( ) ) . toContain ( "hello world " )
93
93
// await page.waitForSelector('#viewer', {state: 'visible'})
94
94
95
- const frameText2 = page . frameLocator ( '#viewer' ) . locator ( textDOM )
96
- // await frameText2.waitFor({state: 'visible'})
95
+ // const frameText2 = page.frameLocator('#viewer').locator(textDOM)
96
+ // // await frameText2.waitFor({state: 'visible'})
97
97
98
- // loop over all of the frames and log their content
99
- const frames = await page . frames ( ) ;
100
- for ( const frame of frames ) {
101
- console . log ( 'page.frames textContent: ' , await frame . textContent ( textDOM ) ) ;
102
- console . log ( 'page.frames innerText: ' , await frame . innerText ( textDOM ) ) ;
103
- }
98
+ // // loop over all of the frames and log their content
99
+ // const frames = await page.frames();
100
+ // for (const frame of frames) {
101
+ // console.log('page.frames textContent: ', await frame.textContent(textDOM));
102
+ // console.log('page.frames innerText: ', await frame.innerText(textDOM));
103
+ // }
104
104
105
- expect ( await frameText2 . textContent ( ) ) . toContain ( "hello world" )
105
+ // expect(await frameText2.textContent()).toContain("hello world")
106
106
107
107
// const elementFrame = await page.waitForSelector("iframe")
108
108
// /**
0 commit comments