Author: vpakan(a)redhat.com
Date: 2010-03-29 07:21:48 -0400 (Mon, 29 Mar 2010)
New Revision: 21103
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/ImportStrutsProjectTest.java
Log:
Added some delays to testImportStrutsProjectTest() method
Modified:
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/ImportStrutsProjectTest.java
===================================================================
---
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/ImportStrutsProjectTest.java 2010-03-29
11:19:00 UTC (rev 21102)
+++
trunk/struts/tests/org.jboss.tools.struts.ui.bot.test/src/org/jboss/tools/struts/ui/bot/test/smoke/ImportStrutsProjectTest.java 2010-03-29
11:21:48 UTC (rev 21103)
@@ -14,6 +14,7 @@
import java.io.File;
import org.eclipse.swtbot.swt.finder.widgets.SWTBotTree;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
import org.jboss.tools.ui.bot.ext.SWTEclipseExt;
import org.jboss.tools.ui.bot.ext.SWTJBTExt;
import org.jboss.tools.ui.bot.ext.SWTTestExt;
@@ -52,9 +53,12 @@
bot.menu(IDELabel.Menu.FILE).menu(IDELabel.Menu.IMPORT).click();
bot.shell(IDELabel.Shell.IMPORT).activate();
+ swtJbtExt.delay();
SWTBotTree tree = bot.tree();
swtJbtExt.delay();
- tree.expandNode("Other").select(IDELabel.Menu.STRUTS_PROJECT);
+ SWTBotTreeItem tiOther = tree.expandNode("Other");
+ swtJbtExt.delay();
+ tiOther.select(IDELabel.Menu.STRUTS_PROJECT);
bot.button("Next >").click();
bot.shell(IDELabel.Shell.IMPORT_STRUTS_PROJECT).activate();