Author: jpeterka
Date: 2012-04-24 07:25:34 -0400 (Tue, 24 Apr 2012)
New Revision: 40447
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
Log:
Condition added into ImportHelper and default timeout increased for project import
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java
===================================================================
---
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-04-24
09:49:21 UTC (rev 40446)
+++
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/helper/ImportHelper.java 2012-04-24
11:25:34 UTC (rev 40447)
@@ -1,6 +1,7 @@
package org.jboss.tools.ui.bot.ext.helper;
import static org.eclipse.swtbot.swt.finder.waits.Conditions.shellCloses;
+import static org.eclipse.swtbot.swt.finder.waits.Conditions.widgetIsEnabled;
import static org.junit.Assert.fail;
import java.io.File;
@@ -36,6 +37,7 @@
dlgBot.radio(0).click();
dlgBot.button("Select All").click();
SWTBotShell s = dlgBot.activeShell();
+ bot.waitUntil(widgetIsEnabled(dlgBot.button(IDELabel.Button.FINISH)),timeout);
dlgBot.button(IDELabel.Button.FINISH).click();
bot.waitUntil(shellCloses(s),timeout);
}
Show replies by date