Skip to content

Nabis-Engineering/cypress-challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

cypress-challenges

Repo to house challenges for QA Automation Candidates

Instructions

  • Duplicate this repository in your own account and create a test file for each challenge.
  • Please include steps on how to run your tests from the command line.
  • When complete provide a link to your repository to the recruiter.

Challenges

Ecommerce

Using https://www.demoblaze.com, provide cypress code to automate and validate the following steps:

  • Navigate to the Samsung galaxy s6 product page
  • Verify the product title, price, and description.
  • Click the "Add to cart" button.
  • Verify that the "Product Added" confirmation appears.
  • Close the confirmation.
  • Navigate to the cart page.
  • Validate that the added product is present in the cart with the correct name and price.

Network Logging

In main.ts, implement a function called networkEvents that will print all requests and responses for a website. First, use the chromium browser and launch it. Then open a new browser page, and for that page use the on function to watch for "request" and "response" events. For the "request" event, print the method and url. For the "response" event, print the status and url. Finally, go to the website https://coderbyte.com and close the browser after that.

Dynamic Table Data Verification & Pagination

Extract and verify data from a dynamic table with pagination. With this challenge, you will be navigating to a test ecommerce website https://magento.softwaretestingboard.com to aggregate and verify products. Pagination s Your first task is to create an TypeScript interface to represent each product. This product should have a Name (string), Color (string array), Review ranking (1-5, nullable) and Price (number) Please automate the following:

  • Navigate to the men's tops section of the website.
  • Verify using the URL the location (https://magento.softwaretestingboard.com/men/tops-men.html)
  • Verify there are multiple pages of products.
  • Write a function cycleProducts that iterates through all pages of the products.
  • On each page, extract the name, price, and color of each product into a TypeScript array of Products.
  • After iterating through all pages, verify that a yellow tiberius gym tank exists in the collected data.
  • Implement a soft assertion for each row to log any discrepancies without failing the entire test immediately.

About

Repo to house challenges for QA Automation Candidates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors