### **Test Scenarios: Search & Suggest**

** Scenario 1: Search for a Product**

**Scenario Flow****Expected Result/ Pixels to Fire****Additional Verification**
Start at the HomepageHomepage PageView Pixel
Enter a Search Term in the Search Bar and Click Search  <br>Icon or hit Enter to start a Search. <br>The Search results will be displayed on a Search Results PageSearch Event Pixel <br> <br>Search PageView Pixel1.Ensure that the Search Event pixel's **ref** parameter is populated with the referring URL from the Home Page. <br>2.Ensure that the Search Event Pixel fires before the Search Page View Pixel.
Click on a Product from the Search Results Page <br>to go to the PDP pageProduct PageView Pixel
Add the Product to the cart (from the PDP page)ATC Event Pixel1.Ensure that the **ref** parameter is populated with the referring URL from the Search Results Page <br> <br>2.If your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

** Scenario 2: Search for a Product with Text Suggestions**

Scenario FlowExpected Result/ Pixels to FireAdditional Verification
Start at the HomepageHomepage PageView Pixel
Enter a Search and click on one of the Text Suggestions. <br> <br>The Search results will be displayed on a Search Results PageSuggest Event Pixel <br> <br>Search PageView Pixel1.Ensure that the Suggest Event pixel's **ref **parameter is populated with the referring URL from the Home Page. <br> <br>2.Ensure that the Suggest Event Pixel fires before the Search Page View Pixel.
Click on a Product from the Search Results Page <br>to go to the PDP pageProduct PageView Pixel
Add the Product to the cart (from the PDP page)ATC Event Pixel1.Ensure that the **ref** parameter is populated with the referring URL from the Search Results Page <br> <br>2.If your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

** Scenario 3: Search for a Product with Category Suggestions**

**Scenario Flow****Expected Result/ Pixels to Fire****Additional Verification**
Start at the HomepageHomepage PageView Pixel
Enter a Search and click on one of the Category Suggestions.Suggest Event Pixel
This will bring you to a Category PageCategory PageView PixelEnsure that the Suggest Event Pixel fires before the Category Page View Pixel.
Click on a Product from the Category Page <br>to go to the PDP pageProduct PageView Pixel
Add the Product to the cart (from the PDP page)ATC Event PixelIf your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

**Scenario 4: Search for a Product with Product Suggestions**

**Scenario Flow****Expected Result/ Pixels to Fire****Additional Verification**
Start at the HomepageHomepage PageView Pixel
Enter a Search and click on one of the Product Suggestions.-
This will bring you to a Product Page (PDP)Product PageView PixelEnsure that the Suggest Event Pixel fires before the Product Page View Pixel.
Add the Product to the cart (from the PDP page)ATC Event PixelIf your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

** Scenario 5: Search for a Product with Product Redirect**

**Scenario Flow****Expected Result/ Pixels to Fire****Additional Verification**
Start at the HomepageHomepage PageView Pixel
Enter a Search with the exact product name (or product ID) in the Search Bar. <br>Click the Search Icon or hit Enter to start a Search.Search Event PixelEnsure that the Search Event pixel's **ref** parameter is populated with the referring URL from the Home Page.
The search will redirect you to the product pageProduct PageView PixelEnsure that the Search Event Pixel fires before the Search Page View Pixel.
Add the Product to the cart (from the PDP page)ATC Event Pixel1.Ensure that the ATC Event pixel's **ref** parameter is populated with the referring URL from the Home Page. <br> <br>2.If your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

**Scenario 6: Search for a Product with Category Redirect**

**Scenario Flow****Expected Result/ Pixels to Fire****Additional Verification**
Start at the HomepageHomepage PageView Pixel
Enter a Search with the exact category name in the Search Bar.  <br>Click the Search Icon or hit Enter to start a Search.Search Event Pixel
The search will redirect you to the category page. <br>Click on a Product.Category PageView PixelEnsure that the Search Event Pixel fires before the Category Page View Pixel.
This will bring you to a Product Page (PDP)Product PageView Pixel
Add the Product to the cart (from the PDP page)ATC Event PixelIf your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

**Scenario 7: Find a Product through a Filtered Search Result**

**Scenario Flow****Expected Result/ Pixels to Fire****Additional Verification**
Start at the HomepageHomepage PageView Pixel
Enter a Search and click on one of the Text Suggestions. <br> <br>The Search results will be displayed on a Search Results PageSuggest Event Pixel <br> <br> <br>Search PageView PixelEnsure that the Suggest Event Pixel fires before the Search Page View Pixel.
Filter your search results to find a specific product**Scenario A:**  <br>If there is a full page load after the filter is selected, another Search PageView Pixel is expected to fire.  <br> <br>**Scenario B:**  <br>If there is no full page load after the filter is selected, but your Search URL changes, another Search PageView Pixel is expected to fire. <br> <br>**Scenario C:**  <br>If there is no full page load after the filter is selected and the URL does not change, no additional Page View pixel is expected to fire.
Click on a Product from the Search Results Page <br>to go to the PDP pageProduct PageView Pixel
Add the Product to the cart (from the PDP page)ATC Event PixelIf your site does not have Skus, leave the Sku field empty (the validator will show a red flag for this value but this would be expected).
Check out the productOther PageView Pixel On the 'Thank you' pageMake sure that “prod_id” for a given product is the same value across:<br><br>1. Product Page View<br> <br>2. Add to Cart Event<br> <br>3. Basket in Conversion Event<br> <br>4. The product feed sent to Bloomreach

#### **Scenario 8: Search for a Product with Content Catalog**

Scenario FlowExpected Result/ Pixels to FireAdditional Verification
Start at the HomepageHomepage Page View PixelView should be present only if applicable. The test fails if **view_id** is present even though it's not required.
Enter a Search Term in the Search Bar and Click Search Icon or hit Enter to start a Search. The Search results will be displayed on a Search Results PageSearch Event Pixel Search Page View PixelSearch Event 1. Ensure that the Search Event pixel's **ref** parameter is populated with the referring URL from the Home Page. Check the **orig\_ref\_url** value for homepage url in case of SPA. 2. Ensure that the Search Event Pixel fires before the Search Page View Pixel. <br> <br> 3. Check the **df_variable** of the search page view pixel. The values should match the search event pixel (Example: df_q). Search Page View <img src="https://files.readme.io/615eaf4-Screenshot_2023-02-14_at_6.56.24_PM.png" alt="1346" title="Screenshot 2023-02-14 at 3.44.49 PM.png" class="border" align="" caption="" height="auto" width="600" loading="lazy"> 1. Ensure that **search\_term** parameter is present in the search page view pixel with the value is equal to the term user has entered on the search bar. 2. If page view **pytpe is search** and CMS Production has at least 1 account/catalogs entry where **data_type** is content, then: - pixel should have **catalogs** property. - **catalogs** should have at least one catalog entry. - catalog entry name should match a valid catalog in accounts/catalog.
Click on a Product from the Search Results Page to go to the PDP pageProduct Page View Pixelproduct id in pixel should match with product id in the feed
Add the Product to the cart (from the PDP page)ATC Event Pixel1. Ensure that the **ref** parameter is populated with the referring URL (orig_ref_url in case of SPA) from the Product Page. 2. If your site does not have Skus, leave the Sku field empty, even though the validator will show a red flag for Sku.
Check out the productsOther Page View Pixel On the 'Thank you' pageMake sure that **prod_id** for a given product is the same value across: 1. Product Page View 2. Add to Cart Event 3. Basket in Conversion Event 4. The product feed sent to Bloomreach