Skip to content

fix(recording): prefer aria-labelledby over aria-label - #604

Open
inwf wants to merge 1 commit into
Tencent:mainfrom
inwf:fix/recording-labelledby-precedence
Open

inwf wants to merge 1 commit into
Tencent:mainfrom
inwf:fix/recording-labelledby-precedence

Conversation

@inwf

@inwf inwf commented Nov 5, 2026

Copy link
Copy Markdown

Summary

When a recorded control has both aria-labelledby and aria-label, its target name currently comes from aria-label. For example, a button with aria-labelledby="action context" referencing “发布” and “服务”, plus aria-label="旧名称", is recorded as “旧名称” even though its accessible name is “发布 服务”. This can make recorded actions harder to match to subsequent observations.

Resolve aria-labelledby text before aria-label in the recording target descriptor. Add regression coverage for buttons, inputs, reference ordering, whitespace normalization, and missing references, and update both changelog translations.

Testing

  • Confirmed the two new precedence cases fail before the fix and pass afterward; all 14 descriptor tests pass.
  • pnpm ext:test --maxWorkers=4: 3,698 passed, 418 skipped.
  • pnpm lint: passed, including DSH typechecking and tests.
  • pnpm --filter @browser-skill/extension compile: passed.
  • pnpm ext:build: passed.
  • uv run --no-project python scripts/check-changelog-sync.py: passed.
  • git diff --check: passed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant