diff --git a/types/test.d.ts b/types/test.d.ts index 7becea4768..ef0adf352c 100644 --- a/types/test.d.ts +++ b/types/test.d.ts @@ -1145,7 +1145,7 @@ export type PlaywrightTestOptions = { * Viewport used for all pages in the test. Takes priority over `contextOptions`. * @see BrowserContextOptions */ - viewport: ViewportSize | undefined; + viewport: ViewportSize | null | undefined; /** * Options used to create the context. Other options above (e.g. `viewport`) take priority.