Skip to content
Snippets Groups Projects
Commit f6ed9844 authored by danielspeicher's avatar danielspeicher
Browse files

pass options to visit function: #10

parent d6b2661f
No related branches found
No related tags found
No related merge requests found
Pipeline #1297797 passed
Cypress.Commands.overwrite('visit', (originalFn, url, options) => {
options = {};
if (Cypress.env('basicauth_user') != null) {
options = {
auth : {
username: Cypress.env('basicauth_user'),
password: Cypress.env('basicauth_pass')
}
options.auth = {
username: Cypress.env('basicauth_user'),
password: Cypress.env('basicauth_pass')
};
}
return originalFn(url, options);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment