Cypress package files.
This commit is contained in:
18
client/cypress/e2e/1-auth/login.cy.js
Normal file
18
client/cypress/e2e/1-auth/login.cy.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/// <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.", () => {});
|
||||
});
|
||||
Reference in New Issue
Block a user