I am using cypress as automated testing on my cross-platform ionic app written in angular. I wanted to automate the screenshots for the deployment using cypress but the images are of a low quality I am currently setting the viewport to the presets. I tried just scaling the resolution but it causes all the elements to be too small.I am changing the viewport during the tests. I have tried setting the device scale factor with this code in my plugins\index.js file
module.exports = (on, config) => {
on('before:browser:launch', (browser, launchOptions) => {
// force screen to be retina
launchOptions.args.push('--force-device-scale-factor=3')
return launchOptions
})
}
How would I go about taking higher resolution screenshots of my pages for multiple devices using Cypress?