ChainSafe / dappeteer

[DEPRECATED]🏌🏼‍E2E testing for dApps using Puppeteer + MetaMask
Other
491 stars 152 forks source link

Adjust screen resolution during Metamask initial setup #221

Open Lykhoyda opened 1 year ago

Lykhoyda commented 1 year ago

Is your feature request related to a problem? Please describe. We could provide a user an option to change the viewport size during the metamask installation (method "setupMetaMask") as screen sizes may vary for physical and virtual screens of the headless OS runners. The screen size should be consistent regardless of whether we are running the tests or the dappeteer method. The current dappeteer method setViewport will change the screen resolution only for the tests and we have a hardcoded screen size for the setup phase

Describe the solution you'd like Provide parameter to change screen resolution.

export type MetaMaskOptions = {
  seed?: string;
  password?: string;
  showTestNets?: boolean;
  screenResolution?: {
     width: number;
     height: number
  }
};