https://cypress.io logo
Hi I write this command and when I run its faili...
# e2e-testing
m
Hi I write this command and when I run its failing in cy.origin with reason Cypress.Commands.add('loginSession', (email,password)=> { cy.session([email,password],() =>{ cy.visit("https://vismaadvisorytools.stage.vismaonline.com/AdvisorLogin?client=59db66d7-0af5-4fe8-bb86-22bee877e47d") cy.get("#onetrust-accept-btn-handler").click(); cy.title().should('eq', 'Visma Online'); cy.origin("https://connect.identity.stagaws.visma.com", { args: {email, password} }, ({email, password}) => { cy.get('#Username').type(email); cy.get("#LoginButton").click(); cy.get("#Password").type(password); cy.get("#LoginButton").click(); } ); }); });