An Engineering article can describe where it sits on a website in two places. Readers see a breadcrumb in the page. Software can read a structured breadcrumb in the HTML. If people maintain those trails separately, a change to a title or link can reach one and miss the other.

We generate both trails from one ordered list. For an article, the list starts at Home, continues to Engineering, and ends with the article title. The two outputs serve different readers. The visible trail marks the current page without linking to itself. The structured trail includes that page's URL. Private previews omit structured breadcrumb data.

The checks read both outputs from generated HTML. For the tested article, they check the order and labels, and compare the visible ancestor link targets with the paths in the structured trail. A separate check exercises an article title that needs escaping. The full local script suite passed 47 tests on the merged revision. Hosted pull request checks passed separately on the pull request head.

A shared list can still contain a wrong path. That's why the tests also check the expected canonical URLs for the fixture. These checks cover the generated output in the cases we tested. They leave browser accessibility and search behavior open.

← All engineering articles