Skip to content

Commit 64502a2

Browse files
authored
fix(browser): revert the viewport scaling in non-ui mode #9018 (#9072)
1 parent c37c2eb commit 64502a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/browser-playwright/src/playwright.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,11 @@ export class PlaywrightBrowserProvider implements BrowserProvider {
365365
if (this.project.config.browser.ui) {
366366
options.viewport = null
367367
}
368-
else {
369-
// if UI is disabled, keep the iframe scale to 1
370-
options.viewport ??= this.project.config.browser.viewport
371-
}
368+
// TODO: investigate the consequences for Vitest 5
369+
// else {
370+
// if UI is disabled, keep the iframe scale to 1
371+
// options.viewport ??= this.project.config.browser.viewport
372+
// }
372373
const context = await browser.newContext(options)
373374
await this._throwIfClosing(context)
374375
if (actionTimeout != null) {

0 commit comments

Comments
 (0)