cherry-pick(release-1.12): allow viewport null values (#7310)

PR #7225 SHA 4d0d392

Co-authored-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Andrey Lushnikov 2021-06-24 18:15:55 -07:00 committed by GitHub
parent 9a3c01db41
commit dd153b3dd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
types/test.d.ts vendored
View file

@ -1116,7 +1116,7 @@ export type PlaywrightTestOptions = {
* Viewport used for all pages in the test. Takes priority over `contextOptions`. * Viewport used for all pages in the test. Takes priority over `contextOptions`.
* @see BrowserContextOptions * @see BrowserContextOptions
*/ */
viewport: ViewportSize | undefined; viewport: ViewportSize | null | undefined;
/** /**
* Options used to create the context. Other options above (e.g. `viewport`) take priority. * Options used to create the context. Other options above (e.g. `viewport`) take priority.