Skip to content

Instantly share code, notes, and snippets.

@iconnor
Created July 11, 2019 06:35
Show Gist options
  • Save iconnor/119a39a787a7c66e8c2ab587b21d56c6 to your computer and use it in GitHub Desktop.
Save iconnor/119a39a787a7c66e8c2ab587b21d56c6 to your computer and use it in GitHub Desktop.
How cypress runs over staging
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
if (config.env.environment === 'staging') {
config.defaultCommandTimeout = 30000;
config.chromeWebSecurity = false;
config.baseUrl = 'https://staging.yourserveraddress.com';
}
return config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment