Skip to content

Commit 8690fc2

Browse files
authored
test: update test-project to cypress 14.5.0 (#1373)
docs: update instructions for updating test-project
1 parent 4fc1615 commit 8690fc2

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

factory/test-project/README.MD

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ npx cypress open
1111
```
1212

1313
- Select "E2E Testing"
14-
- Select "Electron" browser
1514
- Select "Continue"
15+
- Select "Electron" browser
16+
- Select "Start E2E Testing in Electron"
1617
- Select "Scaffold example specs"
1718
- Close all Cypress windows
1819

@@ -28,6 +29,8 @@ Remove Cypress from `package.json`:
2829
npm uninstall cypress --no-package-lock
2930
```
3031

32+
Commit the changes.
33+
3134
## Tests
3235

3336
Tests are run via the included [docker-compose](docker-compose.yml) file.

factory/test-project/cypress/e2e/2-advanced-examples/actions.cy.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ context('Actions', () => {
1717
cy.get('.action-email').type('{del}{selectall}{backspace}')
1818

1919
// .type() with key modifiers
20-
cy.get('.action-email').type('{alt}{option}') //these are equivalent
21-
cy.get('.action-email').type('{ctrl}{control}') //these are equivalent
22-
cy.get('.action-email').type('{meta}{command}{cmd}') //these are equivalent
20+
cy.get('.action-email').type('{alt}{option}') // these are equivalent
21+
cy.get('.action-email').type('{ctrl}{control}') // these are equivalent
22+
cy.get('.action-email').type('{meta}{command}{cmd}') // these are equivalent
2323
cy.get('.action-email').type('{shift}')
2424

2525
// Delay each keypress by 0.1 sec

factory/test-project/cypress/e2e/2-advanced-examples/cypress_api.cy.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/// <reference types="cypress" />
22

33
context('Cypress APIs', () => {
4-
54
context('Cypress.Commands', () => {
65
beforeEach(() => {
76
cy.visit('https://example.cypress.io/cypress-api')

factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ context('Misc', () => {
4343
if (Cypress.platform === 'win32') {
4444
cy.exec(`print ${Cypress.config('configFile')}`)
4545
.its('stderr').should('be.empty')
46-
} else {
46+
}
47+
else {
4748
cy.exec(`cat ${Cypress.config('configFile')}`)
4849
.its('stderr').should('be.empty')
4950

factory/test-project/cypress/e2e/2-advanced-examples/storage.cy.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ context('Local Storage / Session Storage', () => {
6464
expect(storageMap).to.deep.equal({
6565
// other origins will also be present if localStorage is set on them
6666
'https://example.cypress.io': {
67-
'prop1': 'red',
68-
'prop2': 'blue',
69-
'prop3': 'magenta',
67+
prop1: 'red',
68+
prop2: 'blue',
69+
prop3: 'magenta',
7070
},
7171
})
7272
})
@@ -94,9 +94,9 @@ context('Local Storage / Session Storage', () => {
9494
expect(storageMap).to.deep.equal({
9595
// other origins will also be present if sessionStorage is set on them
9696
'https://example.cypress.io': {
97-
'prop4': 'cyan',
98-
'prop5': 'yellow',
99-
'prop6': 'black',
97+
prop4: 'cyan',
98+
prop5: 'yellow',
99+
prop6: 'black',
100100
},
101101
})
102102
})

0 commit comments

Comments
 (0)