Skip to content

Commit

Permalink
Merge 6689dc6 into c1572a8
Browse files Browse the repository at this point in the history
  • Loading branch information
vnglst committed Aug 10, 2019
2 parents c1572a8 + 6689dc6 commit feb80ec
Show file tree
Hide file tree
Showing 14 changed files with 192 additions and 200 deletions.
5 changes: 5 additions & 0 deletions cypress/fixtures/example.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "Using fixtures to represent data",
"email": "hello@cypress.io",
"body": "Fixtures are a great way to mock data for responses to routes"
}
7 changes: 0 additions & 7 deletions cypress/integration/finding-colors.e2e.js

This file was deleted.

89 changes: 67 additions & 22 deletions cypress/integration/finding-words.e2e.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,74 @@
describe('Clicking N should turn button green', function() {
it('finds N, clicks it and it should turn green', function() {
cy.visit('http://localhost:3000/')
describe("Clicking N should turn button green", function() {
it("finds N, clicks it and it should turn green", function() {
cy.visit("http://localhost:3000/");

cy.get('.grid')
.contains('N')
.should('not.have.class', 'green')
cy.get(".grid")
.contains("N")
.should("not.have.class", "green");

cy.get('.grid')
.contains('N')
cy.get(".grid")
.contains("N")
.click()
.should('have.class', 'green')
})
})
.should("have.class", "green");
});

describe('First clicking O should turn button orange', function() {
it('finds O, clicks it and it should turn orange', function() {
cy.visit('http://localhost:3000/')
it("finds O R A, clicks them", function() {
cy.get(".grid")
.contains("O")
.click()
.should("have.class", "green");

cy.get(".grid")
.contains("R")
.click()
.should("have.class", "green");

cy.get(".grid")
.contains("A")
.click()
.should("have.class", "green");
});

it("clicks new game button, starts new game", function() {
cy.get(".overlay-content > .button").click();

cy.get(".grid")
.contains("N")
.should("not.have.class", "green");

cy.get(".grid")
.contains("N")
.click()
.should("have.class", "green");
});
});

describe("First clicking O should turn button orange", function() {
it("finds O, clicks it and it should turn orange", function() {
cy.visit("http://localhost:3000/");

cy.get(".grid")
.contains("O")
.should("not.have.class", "green");

cy.get(".grid")
.contains("O")
.click()
.should("have.class", "orange");
});
});

describe("First clicking O should turn button orange", function() {
it("finds O, clicks it and it should turn orange", function() {
cy.visit("http://localhost:3000/");

cy.get('.grid')
.contains('O')
.should('not.have.class', 'green')
cy.get(".grid")
.contains("O")
.should("not.have.class", "green");

cy.get('.grid')
.contains('O')
cy.get(".grid")
.contains("O")
.click()
.should('have.class', 'orange')
})
})
.should("have.class", "orange");
});
});
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,6 @@
"redux": "^4.0.1",
"tslint": "^5.18.0"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">1%",
"not dead",
Expand Down
12 changes: 0 additions & 12 deletions src/finding-colors/App.css

This file was deleted.

108 changes: 0 additions & 108 deletions src/finding-colors/App.tsx

This file was deleted.

41 changes: 0 additions & 41 deletions src/finding-colors/__tests__/App.test.js

This file was deleted.

Binary file not shown.
1 change: 0 additions & 1 deletion src/finding-colors/index.ts

This file was deleted.

Loading

0 comments on commit feb80ec

Please sign in to comment.