Bug 2063575

Summary: [RFE] - add ouia-ID for buttons on a cv
Product: Red Hat Satellite Reporter: Lai <ltran>
Component: Content ViewsAssignee: Samir Jha <sajha>
Status: CLOSED ERRATA QA Contact: Griffin Sullivan <gsulliva>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ehelms, gsulliva, pcreech, sajha, sbible
Target Milestone: 6.11.0Keywords: FutureFeature, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: tfm-rubygem-katello-4.3.0.38-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 14:34:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lai 2022-03-13 20:21:48 UTC
Description of problem:
This is to aid in airgun automation.  These are the buttons that needs to have ouia-ID:
- create cv
- publish cv
- next, back, and cancel button in the publish screen
- add/remove repositories
- close button in the progress bar workflow screen
- add, remove repo from the kebab menu 

This helps so automation doesn't collide with the dynamic IDs found in the html tags.

Version-Release number of selected component (if applicable):
7.0 snap 13

How reproducible:
100%

Steps to Reproduce:
1. Create cv
2. Inspect element for the buttons listed above in the description
3.

Actual results:


Expected results:


Additional info:

Comment 1 Brad Buckingham 2022-03-14 10:50:26 UTC
Similar to bug 2060097

Comment 4 Samir Jha 2022-04-07 12:39:13 UTC
Created redmine issue https://projects.theforeman.org/issues/34749 from this bug

Comment 5 Bryan Kearney 2022-04-19 20:04:57 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/34749 has been resolved.

Comment 6 Griffin Sullivan 2022-05-05 15:24:40 UTC
Verified in 6.11 snap 19 on RHEL 7

ouia-ID added for:
- create cv
- publish cv
- add/remove repositories
- close button in the progress bar workflow screen

Steps to Reproduce:
1. Create cv
2. Inspect element for the buttons listed above in the description

Actual results:
data-ouia-component-id on the button is static and unique.

Expected results:
data-ouia-component-id on the button is static and unique.

Notes:
- next, back, and cancel button in the publish screen don't have static ouia-id's. However, they use button primary, secondary, and link in their class names which we can try to use.
- For removing and adding repositories from the kebab, we can only use the kebab at the top of the Repositories tab (next to Add repositories). For now, we will need to play around with reaching the kebab in each row of the table since those are dynamic. We will have to try to search for the CV in the search bar and then drill down into whatever result we get.

Comment 7 Lai 2022-05-12 01:43:18 UTC
Hey Samir,

Are the "Create content view" and "cancel" button in the create cv popup face the same issue as the "next, back, and cancel" button in the publish screen?  If no, I would need static ouia-id on those as well.

Comment 10 Griffin Sullivan 2022-05-23 15:06:16 UTC
Verified in 6.11 snap 21

Create Content View and cancel buttons on "Create content view" popup have unique ouia-ids.

Steps to Reproduce:
1. Content > Content Views > Create content view
2. Inspect buttons at the bottom

Expected Results:
Both "Create content view" and "Cancel" buttons have unique and static data-ouia-component-id's

Actual Results:
Both "Create content view" and "Cancel" buttons have unique and static data-ouia-component-id's

Comment 13 errata-xmlrpc 2022-07-05 14:34:27 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: Satellite 6.11 Release), 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-2022:5498