This project contains automated scripts to test various actions on the DemoQA website, specifically focused on the bookstore section. The steps involved in the test include visiting the website, logging in, adding a book to the profile, and ensuring that the book was correctly added and can be deleted.
- Visit DemoQA.
- Navigate to the bookstore page.
- Log in using credentials.
- Check that the user is logged in to the correct account.
- Within the bookstore, navigate to the Book Store section.
- Add a random book from the ones available.
- Within the bookstore, navigate to the Profile section.
- Check that the previously added book is the same as the one shown in the profile.
- Delete the book.
- Check that the book was actually deleted from the profile.
- Ensure that you have Node.js installed.
- Cypress should be installed as part of the project dependencies.
- Clone the Repository: Use
git clone
to clone the project to your local machine. - Navigate to the Project Folder: Use
cd
to navigate into the project directory. - Install Dependencies: Run
npm install
to install all necessary dependencies. - Open Cypress: Use
npx cypress open
to open the Cypress Test Runner. - Run the Test: Click on the specific test file within the Cypress window to run the tests.
Make sure to use your own credentials when logging in to the bookstore application.