The test gate, suite by suite

Every site built with Croftweaver carries its own test gate: 19 test suites that run against the finished build. This page lists each one, with what it checks, an example of a failure, and what a pass does not prove.

When the gate runs

By default the suites run before every push: a git hook builds the site and tests that build in one desktop-size browser. They run again on GitHub, for every pull request and for every push to main and production.

Two limits apply. The hook can be skipped with one flag. And the default publish path runs the tests first, but it is a default, not a lock: whether the server refuses a change whose checks failed depends on a branch rule that the owner switches on. On the repository behind this site it is on, so a change reaches main only by a pull request that passes its checks. The push that publishes to production is not gated by any check (read from GitHub's settings on 23 October 2026).

Some of the same checks, read against a site an AI assistant built, are on the SEO checklist for AI-built websites.

These are the suites of the toolkit template at commit 8e3c002, copied on . One suite is this site's own: Preview handling, kept from release 0.34 for the site's old Cloudflare Pages project, which still serves its pages.dev addresses until it is retired. The Workers config suite is the template's from the commit above, with its skip replaced by a test that needs a Workers config. It was copied on 18 November 2026, the day the live site moved to Cloudflare Workers.

People can use it

Accessibility tests/a11y.spec.ts

Checks
Automated WCAG A and AA checks on every page, in light and dark.
Fails when
A text colour with too little contrast in the dark theme fails, even when the light theme passes.
Does not prove
Automated rules catch only part of what makes a page accessible, and the run uses one desktop-size browser. Keyboard use and screen readers still need a person. Contrast the scanner cannot decide, such as text over an image, is reported as a warning, not a failure.

Navigation tests/navigation.spec.ts

Checks
Every page loads, and internal links resolve, whether written from the site root, in full or relative to the current page.
Fails when
A link to a page that was renamed fails. So does a link that only works through a redirect.
Does not prove
Links to other sites are not checked.

Anchors tests/anchors.spec.ts

Checks
Every internal link to a section lands on a real section.
Fails when
An internal link to a section fails when no element on the target page has that id.
Does not prove
It cannot tell whether the section is the one you meant. Section links into other sites, and into files such as PDFs, are skipped.

Images tests/images.spec.ts

Checks
A modern format, fixed dimensions, an alt text and a loading choice for every image.
Fails when
A JPEG with no modern format beside it and no width and height fails on two counts: the format, and the missing dimensions.
Does not prove
An empty alt text passes, because a decorative image needs one. It cannot tell whether a description fits the picture.

Phone images tests/phone-images.spec.ts

Checks
Each page loads as a phone screen and scrolls to the end. A photo or other raster image the page downloads fails when it is more than 3.3 times as wide as it shows (three times, with a 10% allowance) and a copy that wide would save an estimated 4 KiB or more, or when it is downloaded but never shown and is 4 KiB or more.
Fails when
A 63 KiB photo 1600 pixels wide, shown 372 pixels wide on a phone, fails: the test allows it 1228 pixels, and a copy that wide saves an estimated 26 KiB.
Does not prove
It measures one phone size, in one browser, Chromium. SVG files are not judged, nor images used only as borders, cursors or shapes, and the saving is an estimate. It does not judge how sharp an image looks or which file format it uses.

Icons tests/icons.spec.ts

Checks
Six icon files for browser tabs and phone home screens, and the logo the structured data names, are linked and served, each a real image at the size it must have.
Fails when
An icon the page links to but the site does not serve fails, and so does a PNG that decodes to the wrong size.
Does not prove
It checks files, not pictures: an icon in the wrong colour, or badly drawn, passes.

Tables tests/tables.spec.ts

Checks
Every table on every page uses the shared table style. On a phone a table of sentences stacks into labelled rows and a table of numbers fits the screen; on a wider screen it is a table again, with no word broken across lines. A test table of each kind also runs on the home page, in light and dark.
Fails when
A table of sentences that makes a phone scroll sideways at 320 px fails.
Does not prove
It measures in one browser, Chromium. Safari and screen readers such as VoiceOver are not checked, and it cannot see a hyphen, only the setting that allows one.

It says what you mean

Positioning tests/positioning.spec.ts

Checks
The term a page stands for appears where the page’s rule says it must, normally in its title, its description and its opening.
Fails when
A rewrite that drops a required term from the page title fails.
Does not prove
It proves the term is present, not that the positioning is good. A page with no declared term only raises a warning.

Tone tests/tone.spec.ts

Checks
No em dashes, no common contractions and no listed buzzwords, in copy and metadata. Quotations are exempt.
Fails when
A headline with a common contraction fails. So does an em dash outside a quotation.
Does not prove
The word list is short and fixed. It cannot tell whether a sentence is clear or true.

Where the term of each page comes from: how the positioning is worked out, before any copy.

It is safe to publish

Email tests/email.spec.ts

Checks
No plaintext email address in the served HTML.
Fails when
An address typed straight into a page fails. It has to go through the component that hides it.
Does not prove
It reads the HTML the way a simple scraper does. A scraper that runs the scripts of a page can still recover the address.

Links tests/links.spec.ts

Checks
Domains you have retired never come back.
Fails when
A link to a domain you moved away from fails, once that domain is on the list.
Does not prove
The list starts empty and grows by hand. Whether links to other sites still work is a separate audit, not part of this gate.

Placeholders tests/placeholders.spec.ts

Checks
No unfilled slot, filler text or note from the author in what a page serves: its copy, its metadata, the labels and alt texts a visitor meets, its structured data, and the web manifest.
Fails when
A page that still carries an empty slot in square brackets fails. So does a description left as filler text.
Does not prove
It knows a fixed set of shapes, chosen so that it rarely flags real copy, so a leftover in another shape passes. It does not read the 404 page, llms.txt, PDFs, text inside images or text that shows only when JavaScript is off.

Privacy host tests/privacy-host.spec.ts

Checks
The analytics host the privacy page names is the host the site loads its analytics from.
Fails when
A privacy page that names one analytics host while the site loads its analytics from another fails.
Does not prove
It reads only the host the page marks. A page with no mark passes without being checked, so this site keeps a separate test that a mark is present. It does not judge the wording around the host.

Preview handling tests/middleware.spec.ts

Checks
Preview addresses ask search engines not to index them.
Fails when
A change that lets a preview address answer without the noindex header fails.
Does not prove
It calls the function directly, so it does not prove that the hosting account runs it. A noindex header also does not stop every AI crawler from citing a preview address.

Workers config tests/workers-config.spec.ts

Checks
The site folder holds one Workers config, and it serves the built files with no script of its own, keeps the live workers.dev address off and turns preview links on.
Fails when
A config that adds a script of its own fails. So does a site folder with no Workers config.
Does not prove
It reads the file in the repository, not the Worker Cloudflare runs, so a deploy made by hand from another copy is not checked. It does not check the domain the config attaches.

Own build tests/served-build.spec.ts

Checks
The server the tests run against serves this copy of the site, from its own build.
Fails when
When another copy of the site on the same computer takes the test port during the build, the run fails instead of testing that copy.
Does not prove
It compares one marker file, written fresh for each test build. Two runs in the same folder share one build, so it cannot tell them apart.

After the tests, a review in two passes

The tests are the floor. Before a launch, and after a page is added or rewritten, a review skill reads the site in two passes. The first looks for bugs. The second looks for things that no longer match across files: routes, addresses, metadata, config and docs. It reports a ranked list and changes nothing by itself.

For a change with more at stake, such as repositioning a whole site, the skill can send the same material to one independent AI model for a second opinion. It explains the choice and asks you first.

What no test here covers