We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ec6fc commit 5406e8eCopy full SHA for 5406e8e
packages/browser-playwright/src/playwright.ts
@@ -365,6 +365,10 @@ export class PlaywrightBrowserProvider implements BrowserProvider {
365
if (this.project.config.browser.ui) {
366
options.viewport = null
367
}
368
+ else {
369
+ // if UI is disabled, keep the iframe scale to 1
370
+ options.viewport ??= this.project.config.browser.viewport
371
+ }
372
const context = await browser.newContext(options)
373
await this._throwIfClosing(context)
374
if (actionTimeout != null) {
0 commit comments