19 lines
503 B
JavaScript
19 lines
503 B
JavaScript
/// <reference types="cypress" />
|
|
|
|
context("Actions", () => {
|
|
beforeEach(() => {});
|
|
|
|
// https://on.cypress.io/interacting-with-elements
|
|
|
|
it("Attempt a failed login.", () => {
|
|
cy.visit("http://localhost:3000");
|
|
cy.get(".ant-btn").contains("Sign In").click();
|
|
cy.get("#email").type("fake@email.com");
|
|
cy.get("#password").type("fakepassword");
|
|
cy.get(".ant-btn").contains("Login").click();
|
|
cy.should("have.text", "user");
|
|
});
|
|
|
|
it("Attempt a failed login.", () => {});
|
|
});
|