Skip to content

Conversation

@AntonioVentilii
Copy link
Contributor

Motivation

The Collapsible component renders TestIdWrapper. This last component required a non-nullish testId (for obvious reasons). So, since this seems to be the intention of the code, we default the testId to a value.

@AntonioVentilii AntonioVentilii requested review from a team as code owners July 11, 2025 06:39
Copy link
Member

@peterpeterparker peterpeterparker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx

Makes me think that - someday in another PR -we should prefix the default testId to avoid clashes. Like gix-cmp-collapsible instead of collapsible. But again, someday and generally speaking.

@peterpeterparker peterpeterparker merged commit 06a318f into main Jul 11, 2025
13 checks passed
@peterpeterparker peterpeterparker deleted the fix/Default-testId-for-Collapsible-component branch July 11, 2025 06:45
AntonioVentilii added a commit that referenced this pull request Jul 11, 2025
# Motivation

As suggested by @peterpeterparker in
#686 (review),
we add a prefix to all the default values of test IDs, to avoid possible
conflicts with the consumers.
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.

2 participants