Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1148530

Summary: Top search panel buttons and VM Status column are missing static HTML IDs (needed for Selenium testing)
Product: Red Hat Enterprise Virtualization Manager Reporter: Pavel Novotny <pnovotny>
Component: ovirt-engine-webadmin-portalAssignee: Greg Sheremeta <gshereme>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: urgent    
Version: 3.5.0CC: ecohen, gklein, gshereme, iheim, lsurette, pstehlik, rbalakri, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Keywords: AutomationBlocker, Regression
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: ux
Fixed In Version: org.ovirt.engine-root-3.5.0-17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-16 13:36:09 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:
Attachments:
Description Flags
screen: buttons on top search panel
none
columns look ok
none
search button fixed
none
bookmark button fixed
none
VMs - Status column with dynamic IDs
none
vm statustext id fixed none

Description Pavel Novotny 2014-10-01 16:11:43 UTC
Created attachment 943139 [details]
screen: buttons on top search panel

Description of problem:
Several elements in Webadmin lost their static IDs, which are needed for test automation.

The elements are:
- buttons in the top search panel (see attached screenshot)
- table cells in the VM 'Status' column

Version-Release number of selected component (if applicable):
rhevm-3.5.0-0.13.beta.el6ev.noarch (vt4)
rhevm-webadmin-portal-3.5.0-0.13.beta.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. Look up elements listed in description and check their HTML static IDs.
2.
3.

Actual results:
No static IDs are assigned to these elements.

Expected results:
1) Top search panel:
 - bookmark button (the star icon) should have ID 'SearchPanelView_bookmarkButton'
 - search button (the magnifier icon) should have ID 'SearchPanelView_searchButton'
2) The table cells in VM Status column should have IDs according to pattern 'MainTabVirtualMachineView_table_content_col14_row{X}' where {X} is the row index


Additional info:

Missing static IDs, especially on the VM Status column, are blocking us in our UI automation efforts.

Comment 2 Einav Cohen 2014-10-06 12:32:13 UTC
Greg - this is urgent priority and blocks automation tests; let's try to provide a patch ASAP. thanks.

Comment 3 Greg Sheremeta 2014-10-14 18:54:12 UTC
Created attachment 947001 [details]
columns look ok

Comment 4 Greg Sheremeta 2014-10-14 18:54:32 UTC
Created attachment 947002 [details]
search button fixed

Comment 5 Greg Sheremeta 2014-10-14 18:54:50 UTC
Created attachment 947003 [details]
bookmark button fixed

Comment 6 Greg Sheremeta 2014-10-14 18:55:37 UTC
Columns -- cannot reproduce -- they look ok to me. Screenshot attached.

Buttons -- fixed. Screens attached.

Comment 7 Pavel Novotny 2014-10-15 09:54:39 UTC
Hi Greg, thanks for fixing buttons in the search panel.

In VMs grid, only cells in Status column have dynamic IDs, other columns are ok, see attached screenshot.

Comment 8 Pavel Novotny 2014-10-15 09:55:29 UTC
Created attachment 947179 [details]
VMs - Status column with dynamic IDs

Comment 9 Greg Sheremeta 2014-10-16 01:02:58 UTC
Gotcha -- I misunderstood. Will fix asap.

Comment 10 Greg Sheremeta 2014-10-16 19:28:27 UTC
Created attachment 947727 [details]
vm statustext id fixed

Comment 11 Greg Sheremeta 2014-10-16 19:30:18 UTC
Pavel, got it fixed. See attachment 947727 [details]. Notice how there are nested divs now, but the outer one has the static ID. I hope that's ok. You might have to tweak your selenium a bit.

Comment 12 Einav Cohen 2014-10-21 12:05:55 UTC
Greg - MODIFIED?

Comment 13 Pavel Novotny 2014-10-23 11:11:05 UTC
Verified in rhevm-3.5.0-0.17.beta.el6ev.noarch (vt7).

Buttons on top search panel have now static IDs (SearchPanelView_bookmarkButton, 
SearchPanelView_searchButton),
as well as table cells in VM data grid/'Status' column (MainTabVirtualMachineView_table_content_col14_row$X).