Repository build for automated tests using cypress for interfaces and services.
You can check the executions and artifacts on Cypress Dashboard Executions
git clone https://github.com/arthurboeck/poc-cypress-e2e.git
npm install
npm start
npm test
Cypress runs on debug mode by default, once you add a debug info, it allows to debug your test on your browser's console and dev tools, read more
Usage sample ../debug-case.js
cy.get('@postCustomer').then((xhr) => {
// The bellow command allows to debug on browser dev tools.
// To check the vars from xhr, you just need to type it on browser console.
debugger
expect(xhr.method).to.eq('POST')
expect(xhr.status).to.eq(200)
})
These folders hold end-to-end tests and supporting files for the Cypress Test Runner.
Fixtures
holds optional JSON data for mocking, read moree2e
hold the actual test files, read morePlugins
allow you to customize how tests are loaded, read moreSupport
file runs before all tests and is a great place to write or load additional custom commands, read more
These files hold settings for the Cypress Test Runner.
- ../cypress.json you can configure project options, read more
- ../package.json hold settings for managing the project's dependencies, scripts, version and a whole lot more, read more