(page: Page, path: string)
| 7 | export const VIEWPORT_HEIGHT = 600; |
| 8 | |
| 9 | export async function open(page: Page, path: string) { |
| 10 | await page.setViewportSize({ |
| 11 | width: VIEWPORT_WIDTH, |
| 12 | height: VIEWPORT_HEIGHT |
| 13 | }); |
| 14 | await page.goto(`${HOST}${path}`); |
| 15 | await expect(page.locator('[data-test-id="header"]')).toBeAttached(); |
| 16 | } |
| 17 | |
| 18 | /** The scroll element of a scenario: the window, or a scrollable element (CSS selector). */ |
| 19 | export type Scroller = "window" | string; |
no outgoing calls