Skip to content

docs: match UI labels exactly in docs-tests, and fix two casing drifts - #2992

Open
marcel-rbro wants to merge 1 commit into
docs/docs-tests-storage-accountfrom
docs/docs-tests-exact-matching
Open

marcel-rbro wants to merge 1 commit into
docs/docs-tests-storage-accountfrom
docs/docs-tests-exact-matching

Conversation

@marcel-rbro

Copy link
Copy Markdown
Contributor

Part of #2671. Stacked on #2989.

The runner matched labels with exact: false, so an assertion passed whenever the documented label was merely contained in what Console renders. That hides the most common kind of drift — a casing change.

Switching the four locators to exact matching found two real ones that had been passing silently:

Doc said Console renders
Plan Consumption Plan consumption
account-level integrations Account-level integrations

Both are bolded as UI element names, so house style says they should match the screen. Fixed in the docs and in the baseline targets. ("Graph" lowercased with the first, since it isn't part of the label.)

Exact matching is still whitespace-trimmed, so only wording, casing and trailing decoration can break a target — all things the docs should be updated to match. Of 52 UI assertions these two were the only breakages; the rest already matched character for character.

Verified against staging: 139 passed · 0 failed · 35 skipped.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FSj1mTUbMKgmu2JoGJLSKD

@marcel-rbro marcel-rbro added documentation Improvements or additions to documentation. t-docs Issues owned by technical writing team. labels Sep 17, 2026
@marcel-rbro marcel-rbro self-assigned this Sep 17, 2026
@apify-service-account

apify-service-account commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

✅ Preview for this PR (commit 9c3cc1c3) is ready at https://pr-2992.preview.docs.apify.com (see action run).

@marcel-rbro
marcel-rbro force-pushed the docs/docs-tests-storage-account branch from 66dc1b4 to d5a1f76 Compare September 17, 2026 14:27
The runner matched element labels with `exact: false`, so an assertion
passed whenever the documented label was merely *contained* in what the
Console renders. That hides the most common kind of drift: a casing
change. Switching the four locators to exact matching turned up two real
ones, both of which had been passing silently.

- Billing: the docs said **Plan Consumption**; Console renders "Plan
  consumption". Fixed in the doc, and "Graph" lowercased with it since it
  is not part of the label.
- Settings: the docs said **account-level integrations**; Console renders
  "Account-level integrations". Both are bolded as UI element names, so
  house style says they should match the screen.

Exact matching stays whitespace-trimmed, so only wording, casing and
trailing decoration can break a target — all things the docs should be
updated to match. Of 52 UI assertions these two were the only breakages;
the rest already matched their labels character for character.

Verified against staging: 139 passed, 0 failed, 35 skipped.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FSj1mTUbMKgmu2JoGJLSKD
@marcel-rbro
marcel-rbro force-pushed the docs/docs-tests-exact-matching branch from 30dd708 to 9c3cc1c Compare September 17, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation. t-docs Issues owned by technical writing team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants