* Minimal interfaces for Playwright's Page and BrowserContext. We use * structural types rather than importing from a specific Playwright package * so this works with any version of playwright, playwright-core, or * @playwright/test.
| 7 | * @playwright/test. |
| 8 | */ |
| 9 | interface PlaywrightBrowserContext { |
| 10 | addCookies( |
| 11 | cookies: Array<{ |
| 12 | name: string |
| 13 | value: string |
| 14 | url?: string |
| 15 | domain?: string |
| 16 | path?: string |
| 17 | }> |
| 18 | ): Promise<void> |
| 19 | cookies(): Promise<Array<{ name: string; value: string }>> |
| 20 | clearCookies(options?: { |
| 21 | name?: string |
| 22 | domain?: string |
| 23 | path?: string |
| 24 | }): Promise<void> |
| 25 | } |
| 26 | |
| 27 | interface PlaywrightPage { |
| 28 | url(): string |
no outgoing calls
no test coverage detected