Cypress test

This commit is contained in:
eai04191
2019-06-19 04:16:39 +09:00
parent cb1b2c9902
commit 8845eab5d9
10 changed files with 1861 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
describe("The Home Page", function() {
it("successfully loads", function() {
cy.visit("/"); // change URL to match your dev URL
cy.contains(".modal", "Tissue へようこそ!");
cy.focused() // command
.should("have.class", "modal")
.should("be.visible")
.contains("button", "まかせて")
.click();
cy.contains("ログイン").click();
cy.url().should("include", "/login");
cy.get("input#email").type("[email protected]");
cy.get("input#password").type("111111");
cy.get("body > .container form")
.contains("ログイン")
.click();
cy.get("nav").should("contain", "ホーム");
});
});