Menu
FeaturesPricingAboutFAQGuidesNPS calculatorTemplatesSign inView 7-day trial

Checking anchors after a navigation redesign

Inventory every anchored step

After a navigation redesign, list each tour step and its current selector. Open the staging environment and run a quick console check: document.querySelectorAll('[data-tour-step]') returns all elements the tour expects. Compare the count and identities against your tour definition spreadsheet. Missing or duplicated entries signal broken anchors.

Automate the smoke test

Add a CI job that loads the staging URL, initializes the tour in headless mode, and asserts every step finds its element within two seconds. Fail the build if any step times out. The script can be as short as twenty lines using Puppeteer or Playwright; it runs on every merge to the redesign branch.

Worked example: settings menu relocation

Old tour step targeted [data-tour-step='open-settings'] on a top-bar gear icon. Redesign moves settings under a user avatar dropdown. The inventory shows the gear icon gone; the dropdown item now carries data-tour-step='open-settings'. CI fails on the old selector. Update the tour step to point at the dropdown item, re-run CI, build passes.

Exception: progressive rollout

If the redesign rolls out behind a feature flag, the tour may need two parallel selector sets—one for the old nav, one for the new. Wrap each step’s selector array in a runtime check: if (flags.newNav) return newSelectors; else return oldSelectors;. Remove the branch after full rollout.

Result: every tour step resolves to a visible element on the redesigned navigation before the change reaches production.

Related: Onboarding Tours features.