Bug 1419820

Summary: Missing identifiers (for Selenium automation) in the plans list table
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: openstack-tripleo-uiAssignee: Jason E. Rist <jrist>
Status: CLOSED WONTFIX QA Contact: Udi Kalifon <ukalifon>
Severity: medium Docs Contact:
Priority: medium    
Version: 11.0 (Ocata)CC: beth.white, jjoyce, jschluet, slinaber, tvignaud, ukalifon
Target Milestone: Upstream M2Keywords: Triaged
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-09 11:28:45 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 Udi Kalifon 2017-02-07 07:23:25 UTC
Description of problem:
1) The plan name in the field should have an id "plan_name".
2) The "Edit" button should have an id "ListPlans__editPlanButton". 
3) The "Delete" button has a class name "ListPlans__editPlanButton" (which is supposed to be the id of the edit button), and doesn't have an id "ListPlans__deletePlanButton".

If it's not possible to give several elements the same id (these elements appear many times, in every row of the table) - it's alright if these identifiers will be classes instead. However currently they're found on the wrong elements or nowhere at all.


Version-Release number of selected component (if applicable):
openstack-tripleo-ui-2.0.1-0.20170126144317.f3bd97e.el7ost.noarch


How reproducible:
100%


Steps to Reproduce:
1. Right-click on the elements in the plans table, and choose "Inspect" to see their attributes.

Comment 1 Udi Kalifon 2017-06-07 15:30:21 UTC
This is still needed. This is in the plan management page, the elements there still don't have IDs.

Comment 2 Udi Kalifon 2017-07-09 10:52:22 UTC
The GUI was rewritten for Pike, but the bug is still valid (although there is no more a "plans table" and the other elements described in the original bug). We need identifiers on the plan cards, tha plan names, the kebab menu and the menu items in it etc...

Comment 4 Jason E. Rist 2018-01-26 23:11:24 UTC
I've put a patch up for this upstream.  Please take a look.

https://review.openstack.org/538362

Since the things you're asking for like ListPlans__editPlanButton are not buttons and also could possibly appear multiple times, I removed the word Button and also made them classes.  You can see how to access them once you acquire the .plan-card with something like a query selector.

Comment 6 Udi Kalifon 2018-04-09 11:28:45 UTC
This won't be tested because it takes too long for the identifiers to trickle down stream, and in the mean time some of the identifiers were removed by upstream because they didn't know what they were important for. This issue will be solved as soon as the automation code is upstream.