[
https://issues.jboss.org/browse/AS7-3186?page=com.atlassian.jira.plugin.s...
]
Pavel Slegr commented on AS7-3186:
----------------------------------
I have reviewed this issue and this is actually not an issue.
When we look at the generated html code for "Server Instance" navigation
<div class="lhs-tree-item lhs-tree-item-selected" style="padding: 3px
3px 3px 23px; margin-left: 0px;" treeid="lhs-nav-tree_gwt-uid-3">
<div id="gwt-uid-4" class="gwt-TreeItem gwt-TreeItem-selected"
style="display: inline;" role="treeitem">
<div class="gwt-HTML">Server Instances</div>
</div>
</div>
and then to JMS Status
<div class="lhs-tree-item" style="padding: 3px 3px 3px 23px;
margin-left: 0px;" token="host-vm"
treeid="lhs-nav-tree_gwt-uid-3">
<div id="gwt-uid-5" class="gwt-TreeItem" style="display:
inline;" role="treeitem">JVM Status</div>
</div>
both look different for following reason:
They were created by different constuctors of LHSNavTreeItem
Inner div of "Server Instance" navigation ... <div
class="gwt-HTML">Server Instances</div>
is there because this navigation item contains an HTML Object with clickHandler in it.
So the conclusion is to resolve this on the automated test level, thus XPath rather then
in the code itself.
Jan, I believe we can define 2 options/cases for testing...
one for class="gwt-TreeItem" without inner <div
class="gwt-HTML">
second for class="gwt-TreeItem" with inner <div
class="gwt-HTML">
Admin console: HTML code inconsistency causing automated tests to
fail
----------------------------------------------------------------------
Key: AS7-3186
URL:
https://issues.jboss.org/browse/AS7-3186
Project: Application Server 7
Issue Type: Bug
Components: Console
Affects Versions: 7.1.0.CR1b
Reporter: Jan Martiska
Assignee: Pavel Slegr
Run AS7 in Domain mode. Navigate to Runtime/Status/Domain Status
- the item "Server Instances" in the menu has a different HTML code than
others.
<div class="gwt-HTML">Server Instances</div>
compared to other nodes, e.g. JVM Status:
<div style="display: inline; " class="gwt-TreeItem"
role="treeitem" id="gwt-uid-6" aria-level="2"
aria-setsize="2" aria-posinset="2"
aria-selected="true">JVM Status</div>
Selenium tests try to locate these items using the class gwt-TreeItem and role
"treeitem", these should be applied to "Server Instances" menu item
too.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira