Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Update components to support OuiaID prop #1997

Open
mshriver opened this issue Apr 16, 2024 · 0 comments
Open

Request: Update components to support OuiaID prop #1997

mshriver opened this issue Apr 16, 2024 · 0 comments

Comments

@mshriver
Copy link

The core PatternFly components are largely OUIA compatible, and specify a prop for ouiaId.

For example, Title: https://www.patternfly.org/components/title#title

This allows test automation to uniquely identify page components based on only the OUIA type (part of component specification) and ID (set via prop).

Within the frontend-components library, the props aren't mapped into the core patternfly component.

For example, PageHeaderTitle: https://github.com/RedHatInsights/frontend-components/blob/master/packages/components/src/PageHeader/PageHeaderTitle.tsx

This returns a Flex element with a Title element in it, but no props are passed into the title element attributes.

Without mapping the props, QE is blocked from adding unique IDs to the frontend source that allow for consistent and direct UI test automation.

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

No branches or pull requests

1 participant