'How can I pass google authentication using 'cypress run' command?
The module react-google-login is installed. I set browser profile. All operate as expected when I use : 'cypress open' command. But when I use 'cypress run' command than window for google authentication appears. What can I do for expected operating using 'cypress run' command?
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
launchOptions.args.push('--user-data-dir=/home/user/.config/google-chrome/Default')
})
}
describe('Some text', async () => {
it ( 'Some text', () => {
cy.visit('https://my.site.com');
...
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
