mirror of
https://github.com/vitest-dev/vitest.git
synced 2025-12-08 18:26:03 +00:00
parent
c37c2eb0b5
commit
64502a2c4e
@ -365,10 +365,11 @@ export class PlaywrightBrowserProvider implements BrowserProvider {
|
||||
if (this.project.config.browser.ui) {
|
||||
options.viewport = null
|
||||
}
|
||||
else {
|
||||
// if UI is disabled, keep the iframe scale to 1
|
||||
options.viewport ??= this.project.config.browser.viewport
|
||||
}
|
||||
// TODO: investigate the consequences for Vitest 5
|
||||
// else {
|
||||
// if UI is disabled, keep the iframe scale to 1
|
||||
// options.viewport ??= this.project.config.browser.viewport
|
||||
// }
|
||||
const context = await browser.newContext(options)
|
||||
await this._throwIfClosing(context)
|
||||
if (actionTimeout != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user