diff --git a/factory/test-project/README.MD b/factory/test-project/README.MD index b3ec385396..fb28160d19 100644 --- a/factory/test-project/README.MD +++ b/factory/test-project/README.MD @@ -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 @@ -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. diff --git a/factory/test-project/cypress/e2e/2-advanced-examples/actions.cy.js b/factory/test-project/cypress/e2e/2-advanced-examples/actions.cy.js index 7a6ef7fbf4..428a45f3f0 100644 --- a/factory/test-project/cypress/e2e/2-advanced-examples/actions.cy.js +++ b/factory/test-project/cypress/e2e/2-advanced-examples/actions.cy.js @@ -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 diff --git a/factory/test-project/cypress/e2e/2-advanced-examples/cypress_api.cy.js b/factory/test-project/cypress/e2e/2-advanced-examples/cypress_api.cy.js index 556f2b8ac5..2b367aee1f 100644 --- a/factory/test-project/cypress/e2e/2-advanced-examples/cypress_api.cy.js +++ b/factory/test-project/cypress/e2e/2-advanced-examples/cypress_api.cy.js @@ -1,7 +1,6 @@ /// context('Cypress APIs', () => { - context('Cypress.Commands', () => { beforeEach(() => { cy.visit('https://example.cypress.io/cypress-api') diff --git a/factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js b/factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js index 52b947454a..51bc2dd4fe 100644 --- a/factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js +++ b/factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js @@ -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') diff --git a/factory/test-project/cypress/e2e/2-advanced-examples/storage.cy.js b/factory/test-project/cypress/e2e/2-advanced-examples/storage.cy.js index 0101a63e4e..9e888b03b2 100644 --- a/factory/test-project/cypress/e2e/2-advanced-examples/storage.cy.js +++ b/factory/test-project/cypress/e2e/2-advanced-examples/storage.cy.js @@ -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', }, }) }) @@ -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', }, }) })