https://cypress.io logo
it("invokes the method getMe after clicking the bu...
# e2e-testing
f
it("invokes the method getMe after clicking the button login", () => { cy.get(":nth-child(3) > .field-H34VB2 > .input > .input-Dp2Gzs").type( "mo@fff.cc" ); console.log("typed in email"); cy.get(":nth-child(4) > .field-H34VB2 > .input > .input-Dp2Gzs").type( "pass" ); //spy on a method getMe inside the imported api and check that it is called after clicking the button submit cy.spy(api.users, "getMe").as("getMe"); cy.get(".btn-DHeP1F").click(); cy.get("@getMe").should("be.called"); });