The purpose of this project is to demonstrate your ability use cypress. You will be writing code that opens a headless browser, navigates webpages, and makes assertions along the way.
For this project you will use NodeJS and Cypress (https://docs.cypress.io/guides/overview/why-cypress). You can use any additional libraries/technologies you would like.
Write a single script that accomplishes each of the tasks outlined
The script should:
- Initialize the Cypress library
- Open a headless browser and navigate to google.com
- Enter the text "MarketDial" into the search bar and initiate the search
- One of the results will be a link to "https://www.marketdial.com/", click that link
Once navigated to the MarketDial home page the script should:
- Wait for the page to successfully load
- Assert that the text "Applicable for Any Retail Function" is displayed where expected
Bonus: Add any number of optional assertions
From the MarketDial home page
- Using the dropdown navigate to
About Us > Events
- Assert that the text circled in the image matches "Using MarketDial, You Can". This assertion will fail because the text does not match
Bonus: Add any number of optional assertions
Create a README.md
that at the minimum explains:
- How to install the requirements for the project
- How to run the project
- How to interpret the results
You can submit zip files via email or you could upload the solution to your personal GitHub and share the link with us
Once your code is submitted we will do the following to verify functionality:
- Follow your instructions on what to install
- Run your code as specified by you
- Verify the base functionality is met