({ page }, use)
| 62 | }, |
| 63 | |
| 64 | async getPreviewFrameLocator({ page }, use) { |
| 65 | await use(async () => { |
| 66 | // First, wait for the "Previews" frame to become visible. |
| 67 | // This frame hosts the bridge and the app's preview frame. |
| 68 | const previewsFrame = page.frameLocator('#frame'); |
| 69 | await previewsFrame.locator('html').waitFor(); |
| 70 | return previewsFrame.frameLocator('[name="preview"]').locator('body'); |
| 71 | }); |
| 72 | }, |
| 73 | |
| 74 | async getPreviewFrame({ getBridgeFrameLocator, getPreviewFrameLocator }, use) { |
| 75 | await use(async () => { |
no test coverage detected