- Clone this repository to your local machine using Git:
git clone https://github.com/qasimmahmood95/cypress-demo.git
- Navigate to the project directory:
cd cypress-demo- Install the project dependencies:
npm installYou can run my solution using:
npm test-
Page Object Model
I have all my locators in a constructor in a Page file, and I then created separate functions to interact with each locator. This isn't strictly necessary, but I find this abstraction makes for much nicer-looking and more readable tests.