({ page }, use)
| 32 | emulatorUrl: EMULATOR_URL, |
| 33 | |
| 34 | async runTestServer({ page }, use) { |
| 35 | const { app, address } = await runTestServer(); |
| 36 | |
| 37 | await use(async () => { |
| 38 | await page.goto(address.replace('127.0.0.1', 'localhost'), { waitUntil: 'networkidle' }); |
| 39 | |
| 40 | if (process.env.PWDEBUG === '1' || process.env.PWDEBUG === 'true') { |
| 41 | await page.evaluate(() => { |
| 42 | localStorage.setItem('CSB_EMULATOR_DEBUG', 'true'); |
| 43 | }); |
| 44 | } |
| 45 | |
| 46 | await page.waitForFunction(() => { |
| 47 | return typeof window.Nodebox !== 'undefined'; |
| 48 | }); |
| 49 | }); |
| 50 | |
| 51 | await app.close(); |
| 52 | }, |
| 53 | |
| 54 | async getBridgeFrameLocator({ page }, use) { |
| 55 | await use(async () => { |
nothing calls this directly
no test coverage detected