8456 shaares
201 private links
201 private links
4 results
tagged
cypress
An example of API testing in Cypress
It worked well for me.
How to rotate items to test every day
In cypress.config.ts, property e2e.setupNodeEvents for a screen 1920x1080 :
on('before:browser:launch', (browser = {}, args) => {
if (browser.name === 'chrome') {
args.push('--window-size=1920,1080')
return args
}
})
This goes for chrome, but there also a workaround for Electron: https://github.com/cypress-io/cypress/issues/2102#issuecomment-692585453