Cypress test

This commit is contained in:
eai04191
2019-06-04 14:02:23 +09:00
parent cb1b2c9902
commit 8845eab5d9
10 changed files with 1861 additions and 0 deletions

21
e2e/cypress/integration/test.spec.js vendored Normal file
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("eai@mizle.net");
cy.get("input#password").type("111111");
cy.get("body > .container form")
.contains("ログイン")
.click();
cy.get("nav").should("contain", "ホーム");
});
});