Repository build for automated tests using cypress for interfaces and services.
You can check the executions and artifacts on Cypress Dashboard Executions
- Node
- Npm
- Brazilian Utils v1.0.0-rc.12
- Cypress v13.11.0
- Cypress Grep v4.0.2
- Cypress ESLint v3.3.0
- ESLint v9.5.0
- Faker JS v8.4.1
git clone https://github.com/arthurboeck/poc-cypress-e2e.git
npm install
npm start
npm test
The following command will run all tests with the tag @api, you can read more here.
npm run test -- --env grepTags=@api
Cypress runs in debug mode by default. Once you add debug information, it enables debugging of your test in 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
holds the actual test files, read morePlugins
allows 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 more, read more