Testing setTimeout() components
# e2e-testing
l
Testing setTimeout() components
Hi Team! I'm looking to see if my notification appears, but the
cy.get()
takes too long, and my component times out before
cy.get()
has the opportunity to find it. Any tips? Code:
Copy code
it.only("case 'The InvalidParameterException shows a suitable  error'", () => {
      onFormLayoutsPage.testPlainTextInput("email", "team");
      onFormLayoutsPage.testPlainTextInput("password", "8s8d7fds!!");
      cy.get('[data-cy="login"]').click();
      cy.get('[data-cy="notification"]').should("have.attr", "status", "error");
    });