Skip to content

chore(CalendarMonth): Include OUIAProps for CalendarMonth#12593

Open
mshriver wants to merge 1 commit into
patternfly:mainfrom
mshriver:calendar-month-ouia
Open

chore(CalendarMonth): Include OUIAProps for CalendarMonth#12593
mshriver wants to merge 1 commit into
patternfly:mainfrom
mshriver:calendar-month-ouia

Conversation

@mshriver

@mshriver mshriver commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Add OUIA attribute support to CalendarMonth for better test automation.

What:
Closes #12592

Summary by CodeRabbit

  • New Features
    • Added Open UI Automation support to the Calendar Month component.
    • Introduced optional automation props for a custom component ID and an ouiaSafe safety flag (defaulting to enabled).
    • Rendered automation metadata now includes component type, custom ID, and the safety state.
  • Tests
    • Added coverage to verify the component’s Open UI Automation output and default behavior.
  • Documentation
    • Updated the Open UI Automation guide to include Calendar Month as a supported component.

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 696e4cf7-91dd-4742-b442-05acef3479df

📥 Commits

Reviewing files that changed from the base of the PR and between c23ff05 and 18d8c90.

⛔ Files ignored due to path filters (2)
  • packages/react-core/src/components/CalendarMonth/__tests__/__snapshots__/CalendarMonth.test.tsx.snap is excluded by !**/*.snap
  • packages/react-core/src/components/DatePicker/__tests__/__snapshots__/DatePicker.test.tsx.snap is excluded by !**/*.snap
📒 Files selected for processing (3)
  • packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx
  • packages/react-core/src/components/CalendarMonth/__tests__/CalendarMonth.test.tsx
  • packages/react-core/src/helpers/OUIA/OUIA.md
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/react-core/src/components/CalendarMonth/tests/CalendarMonth.test.tsx
  • packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx

Walkthrough

CalendarMonth now accepts OUIA props, renders the corresponding data-ouia-* attributes, includes integration tests, and is listed in the OUIA developer guide.

Changes

CalendarMonth OUIA integration

Layer / File(s) Summary
OUIA props and root rendering
packages/react-core/src/components/CalendarMonth/CalendarMonth.tsx
CalendarMonth accepts ouiaId and ouiaSafe, computes OUIA props, and applies them to its root element.
OUIA validation and documentation
packages/react-core/src/components/CalendarMonth/__tests__/CalendarMonth.test.tsx, packages/react-core/src/helpers/OUIA/OUIA.md
Tests verify generated OUIA attributes, defaults, overrides, and snapshot output, and the guide lists CalendarMonth as supported.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: thatblindgeye

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding OUIA props support to CalendarMonth.
Linked Issues check ✅ Passed The PR adds OUIA prop support to CalendarMonth, matching issue #12592's requirement for test automation support.
Out of Scope Changes check ✅ Passed The added tests and OUIA documentation are directly related to the CalendarMonth OUIA support change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Add OUIA attribute support to CalendarMonth for better test automation.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

CalendarMonth missing OUIA Support

1 participant