This is a repo with a sample project that I used to practice using Azure DevOps and Azure Pipelines for test automation. Repo is forked from bushralam/automation-bookstore at chapter-2
Site is deployed at https://automationbookstore.dev (https://mzinbookstore-linux.azurewebsites.net) or can be downloaded and used locally.
git clone https://github.com/MaksimZinovev/automation-bookstore-yaml.git
To run tests locally Install live-server - npm
npm install live-server -g
- Check in your browser http://127.0.0.1:8080/. Website should be accessible
- Install Cypress
cd e2e-tests
npm init -y
npm install cypress
npx cypress open
Follow prompts and complete setup for Chrome.
Run search.cy.js
in Cypress app to check if it is working.
- Run the website
cd automation-bookstore-yaml
live-server
- Run cypress tests from CLI
npm test
- Run cypress specs in UI mode
npx cypress open