Bug 917698

Summary: [User Portal] VM action buttons are now missing static IDs (needed for automated testing)
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavel Novotny <pnovotny>
Component: ovirt-engine-userportalAssignee: Vojtech Szocs <vszocs>
Status: CLOSED ERRATA QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.1.3CC: acathrow, cboyle, dyasny, ecohen, iheim, italkohe, oramraz, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---Keywords: Regression, TestBlocker, ZStream
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ux
Fixed In Version: sf10 Doc Type: Bug Fix
Doc Text:
To support automated web graphical user interface (GUI) testing tools such as Selenium, web applications should assign unique and deterministic identifiers (IDs) to HTML DOM elements representing parts of the user interface (UI) that involve some sort of user interaction, for example, a button or text field. In UserPortal 'Basic' view, Virtual Machine action buttons such as Run or Shutdown do not have these explicit IDs. This means that automated web GUI testing tools might have problems accessing Virtual Machine action buttons without explicit IDs. To rectify this, explicit IDs have been added to the Virtual Machine action buttons. This means that automated web GUI testing tools can now easily access Virtual Machine action buttons through explicit IDs.
Story Points: ---
Clone Of:
: 918735 (view as bug list) Environment:
Last Closed: 2013-06-10 21:35:06 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:
Bug Depends On:    
Bug Blocks: 918735, 922807    
Attachments:
Description Flags
Screen: User Portal - VM action button IDs none

Description Pavel Novotny 2013-03-04 15:12:07 UTC
Created attachment 705019 [details]
Screen: User Portal - VM action button IDs

Description of problem:
In the User Portal "Basic" view, VM action buttons (Run, Shutdown, ...) are now missing static IDs. Till this version, all these buttons had IDs like 'MainTabBasicListView_vm0_runButton', now the IDs are dynamic again, for example 'gwt-uid-370_runButton', see attached screenshot.

Version-Release number of selected component (if applicable):
rhevm-3.1.0-50.el6ev (SI27.3)

How reproducible:
Always

Steps to Reproduce:
1. Have a VM, which you can access from the User Portal (the "Basic" view).
2. Locate the HTML ID attribute of some of the VM action button widget (like 'Run VM' button).
  
Actual results:
<div id="gwt-uid-370_runButton" ...

Expected results:
<div id="MainTabBasicListView_vm0_runButton" ...

Additional info:

Regression against rhevm-3.1.0-49.el6ev (SI27.2).

Comment 4 Pavel Novotny 2013-03-13 10:30:23 UTC
Verified in rhevm-3.2.0-10.14.beta1.el6ev (SF10).

All static IDs on the Basic view are again present.

Comment 5 Cheryn Tan 2013-04-03 06:52:04 UTC
This bug is currently attached to errata RHEA-2013:14491. If this change is not to be documented in the text for this errata please either remove it from the errata, set the requires_doc_text flag to minus (-), or leave a "Doc Text" value of "--no tech note required" if you do not have permission to alter the flag.

Otherwise to aid in the development of relevant and accurate release documentation, please fill out the "Doc Text" field above with these four (4) pieces of information:

* Cause: What actions or circumstances cause this bug to present.

* Consequence: What happens when the bug presents.

* Fix: What was done to fix the bug.

* Result: What now happens when the actions or circumstances above occur. (NB: this is not the same as 'the bug doesn't present anymore')

Once filled out, please set the "Doc Type" field to the appropriate value for the type of change made and submit your edits to the bug.

For further details on the Cause, Consequence, Fix, Result format please refer to:

https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes

Thanks in advance.

Comment 6 Vojtech Szocs 2013-04-05 20:12:22 UTC
Updated Doc Type & Doc Text.

Comment 7 errata-xmlrpc 2013-06-10 21:35:06 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.

http://rhn.redhat.com/errata/RHSA-2013-0888.html