diff --git a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/intelligencecommand/MacrosCommandsEditorTest.java b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/intelligencecommand/MacrosCommandsEditorTest.java index 51818011d8..7da4622cca 100644 --- a/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/intelligencecommand/MacrosCommandsEditorTest.java +++ b/selenium/che-selenium-test/src/test/java/org/eclipse/che/selenium/intelligencecommand/MacrosCommandsEditorTest.java @@ -32,7 +32,6 @@ import org.eclipse.che.selenium.pageobject.ProjectExplorer; import org.eclipse.che.selenium.pageobject.intelligent.CommandsEditor; import org.eclipse.che.selenium.pageobject.intelligent.CommandsExplorer; import org.openqa.selenium.Keys; -import org.openqa.selenium.TimeoutException; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -103,7 +102,8 @@ public class MacrosCommandsEditorTest { commandsEditor.typeTextIntoEditor(Keys.SPACE.toString()); commandsEditor.enterMacroCommandByDoubleClick("${current.project.path}"); commandsEditor.waitTextIntoEditor("echo ${current.project.path}"); - runCommandWithCheckResult(); + commandsEditor.clickOnRunButton(); + consoles.waitExpectedTextIntoConsole(PATH_TO_ROOT_FOLDER); } @Test(priority = 2) @@ -157,18 +157,4 @@ public class MacrosCommandsEditorTest { commandsExplorer.waitCommandInExplorerByName(JAVA_NAME); commandsEditor.waitTabIsPresent(JAVA_NAME); } - - /** - * in very rare cases on the OCP platform we have a situation when after command start, the macros - * output is not displayed - */ - private void runCommandWithCheckResult() { - commandsEditor.clickOnRunButton(); - try { - consoles.waitExpectedTextIntoConsole(PATH_TO_ROOT_FOLDER); - } catch (TimeoutException ex) { - commandsEditor.clickOnRunButton(); - consoles.waitExpectedTextIntoConsole(PATH_TO_ROOT_FOLDER); - } - } }