Skip to content

feat(BBBModal): add testId and closeButtonDataTest props - #44

Merged
Arthurk12 merged 1 commit into
bigbluebutton:developfrom
Arthurk12:issue-43
Jun 16, 2026
Merged

Arthurk12 merged 1 commit into
bigbluebutton:developfrom
Arthurk12:issue-43

Conversation

@Arthurk12

Copy link
Copy Markdown
Member

What does this PR do?

Adds testId (forwarded to the underlying ReactModal element) and closeButtonDataTest props. When testId is set and closeButtonDataTest is omitted, the close button receives ${testId}-close-button automatically.

Closes Issue(s)

Closes #43

Adds `testId` (forwarded to the underlying ReactModal element) and
`closeButtonDataTest` props. When `testId` is set and `closeButtonDataTest`
is omitted, the close button receives `${testId}-close-button`
automatically.
@Arthurk12
Arthurk12 merged commit a74a3fa into bigbluebutton:develop Jun 16, 2026
2 checks passed
@Arthurk12
Arthurk12 deleted the issue-43 branch June 22, 2026 21:47
Arthurk12 added a commit to guiiBecker/bbb-ui-components-react that referenced this pull request Jul 20, 2026
feat(BBBModal): add `testId` and `closeButtonDataTest` props
antobinary pushed a commit to bigbluebutton/bigbluebutton that referenced this pull request Oct 16, 2026
…onents-react

Aligns GenericModal and ModalSimple with the new BBBModal prop API
(bigbluebutton/bbb-ui-components-react#44): replaces the manual
data-test attribute injection via contentRef with the native `testId`
prop, and exposes `closeButtonDataTest` for targeting the close button
in automated tests.
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