fix(test-runner): allow viewport null values (#7225)

This commit is contained in:
Max Schmitt 2021-06-21 20:26:14 +02:00 committed by GitHub
parent 6118d16edd
commit 4d0d3924f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
types/test.d.ts vendored
View File

@ -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.