Skip to content

DEV: Match tag icons on the name the viewer reads - #66

Open
ZogStriP wants to merge 1 commit into
mainfrom
fix-locale-agnostic-tag-icon-assertions
Open

DEV: Match tag icons on the name the viewer reads#66
ZogStriP wants to merge 1 commit into
mainfrom
fix-locale-agnostic-tag-icon-assertions

Conversation

@ZogStriP

@ZogStriP ZogStriP commented Aug 25, 2026

Copy link
Copy Markdown
Member

The TagIcon page object located tags through .discourse-tag[data-tag-name=...]. discourse/discourse#42869 changes that attribute to carry the tag's untranslated name so it stays stable across locales, which breaks the localized specs here — they pass サポート, and the attribute will read support.

The icon itself renders correctly either way; only the locator was stale. Matching on the visible text plus :has(.tag-icon ...) asserts what the reader actually sees and is independent of which name the attribute carries.

Verified green against core main and against the core PR branch, so this can merge in either order.

The page object located tags through `data-tag-name`, which core is
changing to carry the untranslated name so it stays stable across
locales. Asserting on the visible text instead holds either way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant