Skip to main content
Warning This document has not been updated for a while now. It may be out of date.
Last updated: 9 Jun 2020

static: test-ecommerce-changes-to-static

Changes to static can have an impact to tracking across multiple frontend apps. Whilst unit and feature tests exist, it might make sense to run some manual tests until we have stabalised the eCommerce code.

Apps using Ecommerce

Actual as of 2020-03-12

  • Search
    • Results
    • Ajax Ecommerce spelling suggestions
  • Finders
  • Brexit/Transition Checker results pages

Proposed as of 2020-03-12

  • Mainstream browse
  • Topic (specialist) browse
  • Taxon pages
  • Navigation header:
    • Whitehall version
    • Global (static) version

Manual testing Scripts

Search/Finder

Go to a finder and do not search

  1. Go to a search/finder page without a search term
    • [ ] Check that ecommerce tracking is being passed with no search term
  2. Click on a search result
    • [ ] Check that ecommerce tracking is being passed. Only navFinderClicked event tracking (current finder event tracking)

Search from search and finder

  1. Enter a search term on page
    • [ ] Check that the dimensions are being passed with the results pageview
  2. Click on a result
    • [ ] Check that event click - UX is fired with all correct ecommerce dimensions
  3. Go back
    • [ ] Check that the dimensions are being passed with the results pageview

Search from site (search/all only)

  1. Search from any page on site
  2. Land on search results - ensuring search results are sorted by relevant first
    • [ ] Check that the dimensions are being passed with the pageview
  3. Click on a result
    • [ ] Check that event click - UX is fired with all correct ecommerce dimensions
  4. Go back
    • [ ] Check that the dimensions are being passed with the pageview
  5. Enter a search term on page
    • [ ] Check that the dimensions are being passed with the pageview
  6. Click on a result
    • [ ] Check that event click - UX is fired with all correct ecommerce dimensions

Using other sort options on search & finder

  1. Go to a finder
    • [ ] Check that ecommerce tracking is being passed with no search term
  2. Enter a search term on page
    • [ ] Check that the dimensions are being passed with the pageview
  3. Click on a result
    • [ ] Check that event click - UX is fired with all correct ecommerce dimensions
  4. Sort by updated(newest)/most viewed
    • [ ] Check that ecommerce tracking is being passed
  5. Click on a result
    • [ ] Check that ecommerce tracking is being passed with search term

Using other refine options on search & finder

  1. Search with a search term
    • [ ] Check that the dimensions are being passed with the pageview
  2. Search with another search term
    • [ ] Check that the dimensions are being passed with the pageview and that it is against the correct search term and the correct page url is shown in full
  3. Click on a result
    • [ ] Check that correct dimensions are being passed and that it is against the correct search term (2nd refined search term)

Search - Spelling

Search from any page, then click a spelling suggestion

  1. Go to any non-search/finder page, and enter a misspelled search term in the search box, which takes you to the search results page
  • In the pageview (for UA-26179049-1):
    • [ ] Custom dimension 81 is the spelling suggestion text
    • [ ] All other page custom dimensions included as usual
  • In the pageview:
    • [ ] Impression list 'Search spelling suggestion' (containing 1 product)
    • [ ] Impression list product 1 dimension 71 is the actual misspelled search term
    • [ ] Impression list product 1 ID is dd395436-9b40-41f3-8157-740a453ac972
    • [ ] Also the main impression list 'Search' containing up to 20 products for the search results
  1. Click on the spelling suggestion
  • In the event:

    • [ ] Product 1 dimension 71 is the original misspelled search term
    • [ ] Product 1 ID is dd395436-9b40-41f3-8157-740a453ac972
    • [ ] Product Action List is 'Search spelling suggestions'
  • In the event:

    • [ ] Custom dimension 81 is the suggested search term clicked
    • [ ] All other page custom dimensions included as usual
  • In the event:

    • [ ] Impression list should NOT be visible here
  • In the new pageview:

    • [ ] Page path parameter tbc contains the original mispelled keyword, while parameter 'keywords=' contains the new corrected keyword as usual
    • [ ] No spelling suggestion shown on the new results page.
  • In the new pageview:

    • [ ] Impression list 'Search' as normal
    • [ ] No impression list 'Search spelling suggestions'

Search from any page, then click a search result

  1. Go to any non-search/finder page, and enter a misspelled search term in the search box, which takes you to the search results page
  • In the pageview (for UA-26179049-1):
    • [ ] Custom dimension 81 is the spelling suggestion text
    • [ ] All other page custom dimensions included as usual
  • In the pageview:
    • [ ] Impression list 'Search spelling suggestion' (containing 1 product)
    • [ ] Impression list product 1 dimension 71 is the actual misspelled search term
    • [ ] Impression list product 1 ID is dd395436-9b40-41f3-8157-740a453ac972
    • [ ] Also the main impression list 'Search' containing up to 20 products for the search results
  1. Click on any search result
  • In the event:
    • [ ] Product Action List is 'Search'
    • [ ] Product ID and position match the result you clicked
    • [ ] Product dimension 71 is the original mispelled search term
  • In the event
    • [ ] Impression list should NOT be visible here

Search for a mispelled term that returns a suggestion but no results

  1. Enter a misspelled search term that has no results but does have a spelling suggestion **In the results pageview:
  • [ ] Impression list 'Search spelling suggestion' appears, with product 1 as above In the results pageview:
  • [ ] Custom dimension 5 has the value 0

Search for a correctly spelled term

  1. Enter a common search term that is not misppelled and does not return a spelling suggestion In the results pageview:
  • [ ] Impression list 'Search' appears as usual
  • [ ] Impresson list 'Search spelling suggestions' does not appear
  • [ ] Custom dimension 81 does not appear

Brexit/Transition - Results

A very long URL

  1. Visit a very large set of results
  • Check that the dimensions are being passed to a page view
    • [ ] Each action is listed as a product
    • [ ] Each action is grouped by the subheading
    • [ ] Each action has an index appropriate to its group
  1. Click on a guidance URL
  • [ ] Check that the dimensions are being passed to a click event
  1. Click on a title URL
  • [ ] Check that the dimensions are being passed to a click event

A URL with just one choice

  1. Visit a small large set of results
  • Check that the dimensions are being passed to a page view
    • [ ] Each action is listed as a product
    • [ ] Each action is grouped by the subheading
    • [ ] Each action has an index appropriate to its group2) Click on a guidance URL
  • [ ] Check that the dimensions are being passed to a click event
  1. Click on a title URL
  • [ ] Check that the dimensions are being passed to a click event

A no questions answered page

  1. Visit A results page with no questions

A results page with no actions

  1. Visit A results page with no actions

References