Skip to content

Commit 9bf7128

Browse files
committed
Update Cypress project to the latest version
1 parent 334e677 commit 9bf7128

File tree

5 files changed

+529
-1432
lines changed

5 files changed

+529
-1432
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ jobs:
66
container: cypress/browsers:node12.18.3-chrome87-ff82
77
steps:
88
- name: Checkout
9-
uses: actions/checkout@v1
9+
uses: actions/checkout@v2
1010

11+
# find more here https://github.com/cypress-io/github-action/releases
1112
- name: Cypress run
12-
uses: cypress-io/github-action@v2.9.3
13+
uses: cypress-io/github-action@v2.11.7
1314
with:
1415
start: npm test
1516
wait-on: http://localhost:8080

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ To open the `Cypress` Dashboard locally run, we want to type the following in ou
136136
npx cypress open
137137
```
138138

139-
To launch our web server, we want to type one of the following in our terminal at the root of the project.
139+
To launch our web server, we want to type one of the following in our terminal at the root of the project. If we want to run our tests while having Cypress dashboard open, we need to have these running in separate terminal tabs.
140140

141141
```javascript
142142
node app.js

cypress/integration/sample_spec.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@ describe("My First Test", () => {
44
});
55
});
66

7-
// describe('My First Test', () => {
8-
// it('Does not do much!', () => {
9-
// expect(true).to.equal(false)
10-
// })
11-
// })
12-
13-
// To test this locally we need to run the server in one tab and run the tests in another tab
14-
// describe("Launch the website", () => {
15-
// it("Visits the Kitchen Sink", () => {
16-
// cy.visit("http://localhost:8080");
7+
// A test that will always fail
8+
// describe("My First Test", () => {
9+
// it("Does not do much!", () => {
10+
// expect(true).to.equal(false);
1711
// });
1812
// });
1913

20-
describe('My First Test', function() {
21-
it('Visits page', function() {
22-
cy.visit('https://example.cypress.io')
23-
cy.contains('type')
24-
})
25-
})
14+
// To test this locally we need to run the server in one tab and run the tests in another tab
15+
describe("Launch the website", () => {
16+
it("Visits the Kitchen Sink", () => {
17+
cy.visit("http://localhost:8080");
18+
});
19+
});
20+
21+
describe("My First Test", function () {
22+
it("Visits page", function () {
23+
cy.visit("https://example.cypress.io");
24+
cy.contains("type");
25+
});
26+
});

0 commit comments

Comments
 (0)