E2E Testing with cypress to testing 3 websites below:
- Agoda
- Amazon
- Youtube
- Install cypress
npm install cypress --save-dev- Install cypress-mochawesome-reporter
npm install cypress-mochawesome-reporter --save-devnpm run testnpm run test:opennpm run test:report:jsonBook a flight from Jakarta to Singapore using Agoda with specific conditions.
Target: Agoda
Current date is assumed to be tomorrow.
✅ Passenger information is correctly displayed on the Payment page.
✅ Total price matches the price shown on the Passenger Details page.
✅ Departure and arrival times are the same as selected during the flight selection.
✅ All expectations are validated on the Payment page.
Search and validate product details on Amazon with specific viewport and sorting.
Target: Amazon
✅ Product title on the detail page matches the one on the search result.
✅ Product price (up to whole dollar, e.g. $123) matches the price on the search result page.
Validate that video details from YouTube Trending page match the actual video page.
Target: YouTube
✅ The video title matches the one displayed on the Trending page.
✅ The YouTube channel name is the same as shown on the Trending list.
