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.gitnpm installnpm startnpm testThe following command will run all tests with the tag @api, you can read more here.
npm run test -- --env grepTags=@apiCypress 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.
Fixturesholds optional JSON data for mocking, read moree2eholds the actual test files, read morePluginsallows you to customize how tests are loaded, read moreSupportfile 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