Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion factory/test-project/README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ npx cypress open
```

- Select "E2E Testing"
- Select "Electron" browser
- Select "Continue"
- Select "Electron" browser
- Select "Start E2E Testing in Electron"
- Select "Scaffold example specs"
- Close all Cypress windows

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

Commit the changes.

## Tests

Tests are run via the included [docker-compose](docker-compose.yml) file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ context('Actions', () => {
cy.get('.action-email').type('{del}{selectall}{backspace}')

// .type() with key modifiers
cy.get('.action-email').type('{alt}{option}') //these are equivalent
cy.get('.action-email').type('{ctrl}{control}') //these are equivalent
cy.get('.action-email').type('{meta}{command}{cmd}') //these are equivalent
cy.get('.action-email').type('{alt}{option}') // these are equivalent
cy.get('.action-email').type('{ctrl}{control}') // these are equivalent
cy.get('.action-email').type('{meta}{command}{cmd}') // these are equivalent
cy.get('.action-email').type('{shift}')

// Delay each keypress by 0.1 sec
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/// <reference types="cypress" />

context('Cypress APIs', () => {

context('Cypress.Commands', () => {
beforeEach(() => {
cy.visit('https://example.cypress.io/cypress-api')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ context('Misc', () => {
if (Cypress.platform === 'win32') {
cy.exec(`print ${Cypress.config('configFile')}`)
.its('stderr').should('be.empty')
} else {
}
else {
cy.exec(`cat ${Cypress.config('configFile')}`)
.its('stderr').should('be.empty')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ context('Local Storage / Session Storage', () => {
expect(storageMap).to.deep.equal({
// other origins will also be present if localStorage is set on them
'https://example.cypress.io': {
'prop1': 'red',
'prop2': 'blue',
'prop3': 'magenta',
prop1: 'red',
prop2: 'blue',
prop3: 'magenta',
},
})
})
Expand Down Expand Up @@ -94,9 +94,9 @@ context('Local Storage / Session Storage', () => {
expect(storageMap).to.deep.equal({
// other origins will also be present if sessionStorage is set on them
'https://example.cypress.io': {
'prop4': 'cyan',
'prop5': 'yellow',
'prop6': 'black',
prop4: 'cyan',
prop5: 'yellow',
prop6: 'black',
},
})
})
Expand Down