The purpose of this challenge is to apply all the techniques and best practices covered during the front-end sessions to a real framework.
• Javascript • Testcafe
|-- ...
|-- pom # Main Page Object Model folder.
| |-- data # Data provider, Roles.
| |-- pages # All the pages, including Common/Base page.
| |-- tests # Our test files are located here (only one fixture per file).
| |-- ...
'-- package.json
'-- .env
'-- config files
'-- ...
- Node.js (latest version).
- Browsers used (must be installed): Chrome, Firefox.
- Clone this repository.
- Go to repository folder.
- Run
npm install
- Create a .env file with the following variables:
EMAIL=[email protected] PASSWORD=your_password BASE_URL=website_url/
- testcafe
- dotenv
- babel-eslint
- eslint
- eslint-plugin-testcafe
test-chrome
: Runs all the tests on a chrome instance.test-chrome-headless
: Runs all the tests on a headless chrome instance.test-projects-headless
: Runs all the tests from the Project fixture on a chrome instance.test-task-chrome
: Runs all the tests from the Task fixture on a chrome instance.test-login-chrome
: Runs all the tests from the Login fixture on a chrome instance.test-smoke
: Runs all the Smoke Tests on a chrome instance.test-smoke-headless
: Runs all the Smoke Tests on a headless chrome instance.test-currency-chrome
: Runs all the Login tests on two instances of chrome.lint
: Runs eslint for all the files contained in the pom folderlint-init
: Initializes eslint.