This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
examples/browser-service-worker/tests Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ play.describe('browser service worker:', () => {
12
12
const textDOM = "body"
13
13
const debugDOM = "#debug"
14
14
15
- play . beforeEach ( async ( { servers, page} ) => {
16
- await page . goto ( `http://localhost:${ servers [ 0 ] . port } /` ) ;
17
- } )
15
+ // play.beforeEach(async ({servers, page}) => {
16
+ // await page.goto(`http://localhost:${servers[0].port}/`);
17
+ // })
18
18
19
- play ( 'should properly load the content of an IPFS hash' , async ( { page } ) => {
19
+ play ( 'should properly load the content of an IPFS hash' , async ( { servers, page } ) => {
20
+ const currentURL = `http://localhost:${ servers [ 0 ] . port } /`
21
+ await page . goto ( currentURL ) ;
20
22
await page . waitForSelector ( textDOM )
21
23
await page . waitForSelector ( linkDOM )
22
24
@@ -27,7 +29,7 @@ play.describe('browser service worker:', () => {
27
29
state : 'attached'
28
30
} )
29
31
30
- const currentURL = await page . url ( ) ;
32
+ // const currentURL = await page.url();
31
33
await page . goto ( `${ currentURL } ipfs/Qmf412jQZiuVUtdgnB36FXFX7xg5V6KEbSJ4dpQuhkLyfD` ) ;
32
34
await page . waitForSelector ( textDOM )
33
35
You can’t perform that action at this time.
0 commit comments