Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-43548

Duplicated id for data-quickstart-id

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • None

      When I favorite the quickstart for Openshift ACS Instances, there are two elements with the data-quickstart-id attribute "openshift_acs_instances". By definition, id attributes should be unique. This makes it difficult to properly use these attributes in test automation.

      Notice that the data-testid attributes are also duplicated (router-link shouldn't appear multiple times).

      Error: strict mode violation: locator('[data-quickstart-id="openshift_acs_instances"]:visible') resolved to 2 elements:
          1) <a data-testid="router-link" href="/openshift/acs/instances" class="chr-c-favorite-service__tile" data-ouia-component-id="ACS Instances" data-quickstart-id="openshift_acs_instances">ACS Instances</a> aka getByRole('link', { name: 'ACS Instances', exact: true })
          2) <a data-testid="router-link" href="/openshift/acs/instances" class="chr-c-favorite-service__tile" data-quickstart-id="openshift_acs_instances">...</a> aka getByRole('link', { name: 'Advanced Cluster Security |' }) 

      Steps to Reproduce

      1. From the all services page (/allservices), click to favorite the "ACS Instances" quickstart.
      2. Open the services menu.
      3. Search for "openshift_acs_instances" in the dev tools

      Actual Results

      Two elements match this id as shown in the info above, taken from a Playwright test.

      Expected Results

      At any given point in time only one element should match this id.

              Unassigned Unassigned
              btweed@redhat.com Brandon Tweed
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: