-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
False
-
False
-
As a part of the OUIA testing integration, in the OpenShift Console main dashboard, we need to provide an ability to pass additional OUIA attributes to wrappers of the dynamic plugins popovers (e.g., Cluster, Operators, Control Plane, Insights).
One real example:
https://bugzilla.redhat.com/show_bug.cgi?id=2033544: As a widget extension developer (Insights Advisor integration), I don't have enough instruments to manipulate the widget wrappers (I studied Plugin and DashboardsOverviewHealthPrometheusSubsystem TS interfaces). Specifically, I require to add the following attributes for the Insights plugin:
- "data-ouia-component-type=PF4/Dialog", "data-ouia-component-id=insights-popup" for the component with XPath "//div[@role='dialog' and .//h6[normalize-space(.)='Insights Advisor status']]"
- please, notice that the data-ouia-component-id has a unique value and will be different to each widget.
- "data-ouia-component-type=PF4/Button", "data-ouia-component-id=close" for the close button component ".//button[@aria-label='Close']"
- "data-ouia-component-type=PF4/Text", "data-ouia-component-id=header" for the title component ".//h6[contains(@id, 'header')]"
The widget's screenshot:
OUIA-related references:
- relates to
-
CONSOLE-2754 Expose API for testing dynamic plugins with Cypress
- To Do