diff --git a/README.md b/README.md index 1aa97320..ee413efb 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,9 @@ For more details and documentation, please visit [https://CapRover.com](https:// ## Tests ### e2e -to run end to end testing you just have to run `yarn test:e2e` or `yarn test:e2e--open` if you want to display the result. +e2e testing are nocking the network callback. +However, you need to run the front office before running the e2e testing. +to run end to end testing you just have to run `yarn start` then `yarn test:e2e` or `yarn test:e2e--open` if you want to display the result. ## Backers diff --git a/cypress/fixtures/example.json b/cypress/fixtures/example.json deleted file mode 100644 index 02e42543..00000000 --- a/cypress/fixtures/example.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Using fixtures to represent data", - "email": "hello@cypress.io", - "body": "Fixtures are a great way to mock data for responses to routes" -} diff --git a/cypress/support/commands.ts b/cypress/support/commands.ts deleted file mode 100644 index 698b01a4..00000000 --- a/cypress/support/commands.ts +++ /dev/null @@ -1,37 +0,0 @@ -/// -// *********************************************** -// This example commands.ts shows you how to -// create various custom commands and overwrite -// existing commands. -// -// For more comprehensive examples of custom -// commands please read more here: -// https://on.cypress.io/custom-commands -// *********************************************** -// -// -// -- This is a parent command -- -// Cypress.Commands.add('login', (email, password) => { ... }) -// -// -// -- This is a child command -- -// Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... }) -// -// -// -- This is a dual command -- -// Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... }) -// -// -// -- This will overwrite an existing command -- -// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... }) -// -// declare global { -// namespace Cypress { -// interface Chainable { -// login(email: string, password: string): Chainable -// drag(subject: string, options?: Partial): Chainable -// dismiss(subject: string, options?: Partial): Chainable -// visit(originalFn: CommandOriginalFn, url: string, options: Partial): Chainable -// } -// } -// } \ No newline at end of file diff --git a/cypress/support/e2e.ts b/cypress/support/e2e.ts index f80f74f8..9cfb15dc 100644 --- a/cypress/support/e2e.ts +++ b/cypress/support/e2e.ts @@ -1,20 +1,22 @@ -// *********************************************************** -// This example support/e2e.ts is processed and -// loaded automatically before your test files. -// -// This is a great place to put global configuration and -// behavior that modifies Cypress. -// -// You can change the location of this file or turn off -// automatically serving support files with the -// 'supportFile' configuration option. -// -// You can read more here: -// https://on.cypress.io/configuration -// *********************************************************** +/* + DEVNOTE : this file is mandatory even if it does not apply anything + *********************************************************** + This example support/e2e.ts is processed and + loaded automatically before your test files. -// Import commands.js using ES2015 syntax: -import './commands' + This is a great place to put global configuration and + behavior that modifies Cypress. -// Alternatively you can use CommonJS syntax: -// require('./commands') \ No newline at end of file + You can change the location of this file or turn off + automatically serving support files with the + 'supportFile' configuration option. + + You can read more here: + https://on.cypress.io/configuration + *********************************************************** + Import commands.js using ES2015 syntax: + you can create custom commands on https://on.cypress.io/custom-commands + import './commands' + Alternatively you can use CommonJS syntax: + require('./commands') +*/