-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(browser): playwright provider doesn't allow resizing the browser viewport #5984
feat(browser): playwright provider doesn't allow resizing the browser viewport #5984
Conversation
@sheremet-va we can also open it maximized via args if you want to add it here: https://discord.com/channels/807756831384403968/1255831070339891281/1255867837793439857 launchOptions: { args: ["--start-maximized"] } |
Maybe we should open it in max if |
Added For WDIO I haven't found a way to maximize the window on For PW, adding |
Let’s not add any new options. Args can already be overriden by providerOptions |
We can use browser capabilities, but will differ between browsers (note from @christian-bromann ): capabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
args: ['--start-maximized', '--start-fullscreen']
}
} EDIT: WDIO should simplify this, it is a pain |
With latest change, the |
Description
Playwright using custom viewport implementation, once the browser is opened PW will prevent resizing the Vitest UI.
We need to configure
viewport: null
when creating the context, for context check: microsoft/playwright#20721Playwright prevents resizing the viewport
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
pnpm-lock.yaml
unless you introduce a new test example.Tests
pnpm test:ci
.Documentation
pnpm run docs
command.Changesets
feat:
,fix:
,perf:
,docs:
, orchore:
.