Web automation tech test for Doccla
These are four tests run against saucedemo.com:
- A happy path through the main flow of the site i.e. selecting and purchasing some items
- One happy path test against the login
- Two unhappy path tests against the login
- Run the
npm install
command to install the relevant packages - Then run
npm run cypress:run
to run the tests in the CLI against Chrome ornpm run cypress:open
to run the tests in the Cypress Launcher
The test files are in the e2e
directory and all relevant code is in the support
directory
- I designed the login tests with scalability in mind. As long you follow the pattern given with the enum and objects, you'll quickly be able to increase the test cases