0

After we create a Cypress framework in order to execute Salesforce app tests,

  • User login to Salesforce via Microsoft Authentication(MFA disabled here)
  • After successful login, there is an error occurring as you can see in a screenshot enter image description here
  • We close this error and continue to interact with an element
  • Cypress is not able to find any element and fails

Test script:

cy.visit(Cypress.env("INFO_URL"));
cy.origin(`https://login.microsoftonline.com/`, () => {
  cy.get("#i0116").type("username");
  cy.get("#idSIButton9").click();
  cy.get("#i0118").type("password");
  cy.get("#idSIButton9").click();
});
cy.get(
    ".active > .panel > .modal-container > .modal-header > .slds-button"
  ).click();
  cy.get('[data-id="example"]').click();

Error message

Omer
  • 21
  • 1
  • 4

0 Answers0