insert test restart game

master
Peter Babič 4 years ago
parent 1ea3de3e6e
commit 95e72f4be9
Signed by: peter.babic
GPG Key ID: 4BB075BC1884BA40
  1. 2
      cypress.json
  2. 16
      cypress/integration/spec.js

@ -1 +1 @@
{}
{ "baseUrl": "http://localhost:5000" }

@ -0,0 +1,16 @@
/// <reference types="cypress" />
describe("game should", () => {
it("be able to restart itself", () => {
cy.visit("/")
cy.get(".div0.gray").should("be.visible")
cy.get(".div1.red").should("be.visible")
cy.get(".div2.red").should("be.visible").click()
cy.get(".div0.blue").should("be.visible").click()
cy.get(".div0.red").should("be.visible")
cy.get(".div1.gray").should("be.visible")
cy.get(".div2.gray").should("be.visible")
cy.get(".restart").click()
cy.get(".div2.red").should("be.visible")
})
})
Loading…
Cancel
Save