-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
Quality / Stability / Reliability
-
False
-
-
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
- From the all services page (/allservices), click to favorite the "ACS Instances" quickstart.
- Open the services menu.
- 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.
- blocks
-
RHCLOUD-43551 Convert insights-chrome e2e tests to Playwright
-
- Code Review
-