Author: jgargula
Date: 2012-02-22 10:45:21 -0500 (Wed, 22 Feb 2012)
New Revision: 39002
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
Log:
Added reexpansion of item in Show view menu (because of some bug there is no child nodes
after first expansion)
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2012-02-22
15:39:37 UTC (rev 39001)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/SWTEclipseExt.java 2012-02-22
15:45:21 UTC (rev 39002)
@@ -398,8 +398,9 @@
public static void waitForViewInList(SWTBotExt theBot, String theGroupLabel, int
counter) {
int itemsCount = theBot.tree().expandNode(theGroupLabel).getItems().length;
while (itemsCount < counter) {
- SWTBotTreeItem[] theItems = theBot.tree().expandNode(theGroupLabel)
- .getItems();
+ SWTBotTreeItem treeItem = theBot.tree().expandNode(theGroupLabel);
+ treeItem.collapse().expand();
+ SWTBotTreeItem[] theItems = treeItem.getItems();
itemsCount = theItems.length;
for (SWTBotTreeItem i : theItems) {
log.info("SWTBotTreeItem = item = " + i);
@@ -454,6 +455,7 @@
while (itGroupsNodes.hasNext()) {
groupTreeItem = groupTreeItem.expandNode(itGroupsNodes.next());
}
+ groupTreeItem.collapse().expand();
groupTreeItem.select(entityLabel);
} else {
tree.select(entityLabel);
Show replies by date