Uploaded image for project: 'OpenShift Console'
  1. OpenShift Console
  2. CONSOLE-3049

Allow passing OUIA attributes to plugin wrappers

XMLWordPrintable

    • 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:

            Unassigned Unassigned
            gkaratae Georgii Karataev
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: