- If you don't have installed node.js, please install it from this page: https://nodejs.org/en/download/
- Clone this repositiry
git clone https://github.com/wkisielewicz/DribbbleTestCafeTests.git
- Run
npm install
commmand inside project
Acceptance front end testing for:
- Edit account functionality for authenticated user
- Job search functionality for unauthenticated user
- To run all tests execute
npm test
command inside inside project - To run tests for edit account functionality execute
npm run edit-account-test
command inside inside project - To run tests job search functionality execute
npm run job-board-test
command inside inside project - To run all tests on chrome with headless option execute
npm run test-chrome-headless
command inside project - To run all tests on firefox with headless option execute
npm run test-firefox-headless
command inside project
- For generating test data there is added faker.js: https://github.com/Marak/faker.js
- Please notice tests are running with
-e
option witch means--skip-js-errors
, since Dribbble website returns some errors in console and they are tracked by TestCafe, for our purposes we need to skip them, please see exmaple below:
A JavaScript error occurred on "https://dribbble.com/talent/candidate". Repeat test actions in the browser and check the console for errors. If you see this error, it means that the tested website caused it. You can fix it or disable tracking JavaScript errors in TestCafe. To do the latter, enable the "--skip-js-errors" option.