Commit 1ca20dce authored by rbioteau's avatar rbioteau
Browse files

fix unstable test on 7.0.x

parent 563fa180
......@@ -37,7 +37,7 @@ public class ConnectorEditedInAsingleCommandIT extends SWTBotGefTestCase {
final BotConnectorsPropertySection selectConnectorsTab = botProcessDiagramPerspective.getDiagramPropertiesPart().selectExecutionTab()
.selectConnectorsInTab();
final BotAddConnectorDialog addConnector = selectConnectorsTab.addConnector();
addConnector.selectConnector("Groovy 1.8");
addConnector.selectConnectorInCategory("Script", "Groovy 1.8");
addConnector.next().setName("testSingleTransaction");
new BotScriptExpressionEditor(bot, addConnector.next().editScript(0)).setName("scriptName").setScriptContent("dummy content").ok();
addConnector.finish();
......
......@@ -49,6 +49,11 @@ public class BotAddConnectorDialog extends BotWizardDialog {
bot.table().select(pConnectorId);
}
public void selectConnectorInCategory(String categoryName, final String pConnectorId) {
bot.tree().getTreeItem("All").select(categoryName);
bot.table().select(pConnectorId);
}
/**
* Search for connector.
*
......@@ -202,4 +207,6 @@ public class BotAddConnectorDialog extends BotWizardDialog {
public void setCommandSeparator(final String commandSep) {
bot.textWithLabel("Command separator").setText(commandSep);
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment