vilimons / cypress-vuestorefront

0 stars 0 forks source link

Product Filter & Sort test #8

Open vilimons opened 1 year ago

vilimons commented 1 year ago

Test Case: Product Filter & Sort

Objective:

To verify that users can effectively filter and sort products based on their preferences.

Preconditions:

Test Steps:

Step 1: Filter Products
  1. Navigate to the product listing page.
  2. Locate the filter options (e.g., category, price range, brand) on the page.
  3. Select one or more filter criteria (e.g., "Electronics" category, "Price: $100 - $500").
  4. Observe the product list to ensure that it updates to display only the products that match the selected filter criteria.

Expected Results for Step 1:

Step 2: Sort Products
  1. Locate the "Sort By" or "Order" dropdown menu on the product listing page.
  2. Select a sorting option (e.g., "Price: Low to High," "Rating: High to Low").
  3. Observe the product list to ensure that it rearranges the products according to the selected sorting option.

Expected Results for Step 2:

Step 3: Reset Filters and Sorting
  1. Locate a "Reset Filters" or "Clear All" button or option.
  2. Click the "Reset Filters" or "Clear All" option.

Expected Results for Step 3:

Post-Conditions:

Test Case: No Results with Filter Applied

Objective:

To verify that users receive feedback when applying filters that result in no matching products.

Preconditions:

Test Steps:

Step 1: Filter Products with No Results
  1. Navigate to the product listing page.
  2. Locate the filter options (e.g., category, price range) on the page.
  3. Select filter criteria that do not match any products (e.g., a non-existent category).
  4. Observe the product list to verify that it displays a clear message (e.g., "No products match your criteria").

Expected Results for Step 1:

Post-Conditions:

These test cases help ensure that users can effectively filter and sort products on the website, providing a smooth and intuitive browsing experience.