Bug 1414480

Summary: Missing id attribute on Cloud->Instance Edit form, Child VM MultiBoxSelect
Product: Red Hat CloudForms Management Engine Reporter: Mike Shriver <mshriver>
Component: UI - OPSAssignee: Dávid Halász <dhalasz>
Status: CLOSED ERRATA QA Contact: Mike Shriver <mshriver>
Severity: low Docs Contact:
Priority: medium    
Version: 5.7.0CC: cpelland, dhalasz, hkataria, jhardy, mpovolny, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.8.0Flags: mshriver: automate_bug+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: cloud:ui:widget
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1463265 (view as bug list) Environment:
Last Closed: 2017-05-31 14:32:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1463265    

Description Mike Shriver 2017-01-18 15:49:42 UTC
Description of problem:

The MultiBoxSelect widget for child VM selection on the Compute->Cloud->Instance Edit form, implemented as an HTML table, does not have an id attribute for the table.

This prevents CFME QE automation from uniquely identifying the table on the page. Other forms using the MultiBoxSelect have an 'id' field for the table, allowing for element identification via XPATH.

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

Actual results:
<table> element for 'Child VM Selection' section of Cloud Instance Edit form does not have any 'id' attribute.

Expected results:
An 'id' attribute assigned to the <table> element that contains the Child VM Selection widget

Additional info:
This does not impact functionality of the widget, only CFME QE's ability to automate filling of the widget

Comment 3 CFME Bot 2017-03-09 11:42:55 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

commit 64df1305b1e3862aabf2ec5d911ae21dcd0dd9fd
Author:     Dávid Halász <dhalasz>
AuthorDate: Thu Mar 9 11:15:23 2017 +0100
Commit:     Dávid Halász <dhalasz>
CommitDate: Thu Mar 9 11:17:46 2017 +0100

    Add an id for the child VM selection table to ease test automation

 app/views/vm_common/_form.html.haml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 4 Mike Shriver 2017-04-19 13:09:48 UTC
Tested in CFME, the kids_chosen and choices_chosen ID's have been added to the 'Child VM Selection' elements on the Instance Edit form.

This will allow CFME QE to model and test these elements.

Many thanks to dev!

Comment 6 errata-xmlrpc 2017-05-31 14:32:54 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, and where to find the updated
files, follow the link below.

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