# Performance and quality testing

> The automated tests, Chromium trace profiling, constrained-device comparisons, soak tests and release checks behind HistoryShowcase.
>
> Source: https://history-showcase.com/developers/testing.html · Last updated 2026-11-16

Automated checks run on every change; deeper measurements run whenever a change affects motion or rendering.

## Browser tests for every change

Every change to the touchscreen or the editor runs the full browser test suite in Chromium 149, split across four parallel runners, alongside unit tests, type checks and a production build. A change can't merge until all of them pass. The tests tap through real journeys: kiosk navigation, filters, search, Back to the same results and scroll position, keyboard focus, the largest text size on a 320 px phone, portrait screens, offline saving and kiosk apps with their own browser names.

## Both power modes

The main browsing journey runs twice, once in the full experience and once in [low-power mode](low-power.md), so neither mode can quietly break filters, story returns or keyboard focus. Separate checks confirm that reduced motion stops animation and that decorative effects come to rest.

## Chromium trace profiling

For any change to motion or rendering, we record Chromium performance traces before and after it. They show whether each animation runs on the graphics compositor or the main thread, which layers repaint, how long painting and image rasterizing take, and how each tap divides into input delay, event handling and rendering. A performance budget fails the run when a tap, layout shift, forced layout or number of animations goes over its limit.

## Constrained-device comparisons

For changes aimed at slower hardware, the old and new builds run side by side in fresh browsers on cloud machines limited to 1 GB of memory and a quarter of one processor core. Each run uses a synthetic school with no real content. It taps through Explore, a collection, a filter, a story and Back, and a step only counts as ready when the expected photo is decoded and visible.

## Long-running soak tests

A display repeats the same visits for days, so anything a visit leaves behind adds up. Soak runs repeat a visitor's tour many times, collecting garbage between rounds. They flag pages, elements, event listeners or memory that keep growing, and name what is holding on to them.

## Release verification

After every release, automated checks run against the live addresses. They confirm that the public pages, the display and the editor load, that a reference school's live content matches its recorded checksums, and that the API and private photos refuse anonymous requests. See [Hosting, delivery and releases](hosting.md).

## Common questions

### Do these tests prove how our screen will perform?

No. Test browsers run on servers with software graphics, so they show whether a change makes things faster or slower, not your panel's exact frame rate. Check your own hardware with the [performance monitor](low-power.md#check-your-own-screen); the display also measures itself while visitors use it.

### How can we check performance on our own screen?

Add `?motion=hud` to the display address to show frame rate, frame times and dropped frames over the live display. See [Check your own screen](low-power.md#check-your-own-screen).
