Visual suites


A visual suite captures pages, or parts of pages, of your shop and compares them to references. When a capture no longer looks like its reference, you review the difference and decide whether it is a bug or an intended change.

Each capture is made for a combination: one device times one language. A suite with three devices and two languages runs six combinations.

#Create a visual suite

Click the "+" (New visual suite) next to Visual regression in the sidebar.

  1. Choose the Area. It cannot be changed afterwards.
    • Front office: "The shop pages, as a visitor sees them."
    • Back office: "The admin pages, with automatic employee sign-in."
  2. Choose a starting point (see below).
  3. Enter a Name.
  4. Click Create the visual suite.
Starting point What you get
Blank Front office: one header checkpoint. Back office: a login checkpoint and a dashboard checkpoint.
From a template You choose a Template, its Checkpoints and its Devices. Select at least one of each.

#Templates

Template Checkpoints Default devices
Front-office essentials — Classic Header, footer, home, login, empty cart, contact, search and 404 page, for the Classic theme. desktop, mobile
Front-office essentials — Hummingbird The same pages for the Hummingbird theme (PrestaShop 8.1+ and 9). desktop, mobile
Shared components Header, footer and main menu (the main menu on desktop only), whatever the theme. desktop, mobile
Back-office essentials Login, dashboard, products, orders, customers and modules (PrestaShop 1.7.8, 8 and 9). desktop

#Devices

Device Size
desktop 1920 × 1080
tablet 768 × 1024
mobile 390 × 844

The language of a new suite is the one of the project. You can add more in the editor.

#The visual editor

The editor opens after the creation. At the top, you set what applies to the whole suite:

  • Devices: the devices to capture.
  • Languages: click "Add a language" and enter a code such as en or fr-ca (format xx or xx-yy).
  • Shop URL: leave it empty to use the URL of the project.
  • For a back office suite: the Back-office URL and the Employee credentials.

You can also edit the title of the suite and rename its file. Renaming is blocked while the suite is bound to Git or while one of its runs is in progress.

The buttons of the editor:

  • Add a checkpoint.
  • Run (N combinations): launches the suite. N is the number of devices times the number of languages.
  • Code: shows the generated PHP.
  • Save.

If the file was changed elsewhere while you were editing, the app offers Reload or Overwrite anyway.

#Checkpoints

A checkpoint is one thing to capture, for example the home page or the header. It has three sections: Page, Target and Comparison. You can duplicate or delete a checkpoint, and drag checkpoints to reorder them.

#Page

  • Name: lowercase letters, digits and dashes only.
  • Default path: "Empty = home page".
  • Path per language: use a different path for a given language.
  • Skip: next to a language, do not capture this checkpoint for it.

For a back office suite, a checkpoint is either a "Login page (captured signed out)" or a "Back-office page", which you reach with Menu selectors.

#Captured area

The Target section starts with the Captured area. Choose what to capture:

  • Viewport: what is visible without scrolling.
  • Full page: the whole page.
  • CSS element: only the element matching a Selector.

#Waiting and scrolling

  • Wait for element: the capture waits until this selector is on the page.
  • Scroll below: before a Viewport capture, scrolls just past this element (for example the header), so the capture starts below it.

Both fields can be filled with Pick on the page.

#Tolerance

The Comparison section holds the tolerance, the masks and hidden elements, and the excluded devices.

Tolerated pixels is the number of pixels that may change before the checkpoint fails. Anti-aliasing is already tolerated, whatever the preset.

Preset Pixels Help text
Strict 0 "No pixel may change."
Standard 100 "Small anti-aliasing and rendering variations. Default value."
Loose 1,000 "Small changing content (price, counter)."
Wide 10,000 "Animated or highly variable areas."
Custom 0 to 1,000,000 Enter your own value.

#Masks and hidden elements

Some parts of a page change at each visit: a carousel, a date, a cookie banner. Two tools let you ignore them.

Tool Effect
Masks The area is blanked. It keeps its place, so the layout does not move.
Hidden elements The element is removed. The content below moves up.

You can convert a mask into a hidden element, and a hidden element into a mask, if the first choice does not fit.

#Excluded devices

Exclude: the devices on which this checkpoint is not captured.

#Pick on the page

Typing a CSS selector by hand is error prone. The visual picker lets you point at the element instead. It is available for a mask, a hidden element, a captured element, a Wait for element field and a Scroll below field.

It works on the front office and on the back office. For the back office, the app signs in first ("Logging in to the back office…").

  1. Click Pick on the page next to the field.
  2. Hover an element, then click it. Press the up arrow to select its parent, the down arrow to select a child, and Esc to close.
  3. Alternatively, use Type the selector, or Refresh to capture the page again.
  4. Click Use.

The picker shows how old the capture is and how many elements match the selector. It warns you when more than one element matches.

Once your suite is ready, run it and read the results in Reviewing differences.