Bug 1957967 - Possible test flake in listPage Cypress view
Summary: Possible test flake in listPage Cypress view
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.8.0
Assignee: Jon Jackson
QA Contact: Siva Reddy
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-06 21:06 UTC by Jon Jackson
Modified: 2021-07-27 23:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: Cypress listPage.rows.clickRowByName helper was using a selector that was not specific enough. Consequence: In some cases, an incorrect row could match the selector and cause tests to fail. Fix: Update the helper to use a more specific selector with a data-test attribute. Result: The selector will not match incorrect rows.
Clone Of:
Environment:
Last Closed: 2021-07-27 23:07:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8866 0 None open Bug 1957967: Increase specificity of listPage.row.clickRowByName 2021-05-06 21:20:45 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:07:22 UTC

Description Jon Jackson 2021-05-06 21:06:47 UTC
Description of problem:
Cypress view listPage.rows.clickRowByName helper uses a selector that is not specific enough and could cause incorrect row to be clicked in some cases.

Version-Release number of selected component (if applicable):
4.8

How reproducible:
No current observed behavior, noticed during a test update

Steps to Reproduce:
The selector will just match the first row that contains resourceName argument in any column. While I was updating the namespace CRUD tests, I ran into a case where a list page row contained 'kubernetes' in one of the labels, which caused it to be selected and clicked rather than waiting for the list to be filtered and the correct row to be found. This caused an unusual test failure that was hard to troubleshoot.

Comment 5 errata-xmlrpc 2021-07-27 23:07:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:2438


Note You need to log in before you can comment on or make changes to this bug.