Skip to content

Commit

Permalink
Add extra steps in the 'prepare()' to increase stability
Browse files Browse the repository at this point in the history
  • Loading branch information
artaleks9 committed Jan 31, 2018
1 parent a6010e5 commit 38ad488
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.eclipse.che.selenium.pageobject.Loader;
import org.eclipse.che.selenium.pageobject.ProjectExplorer;
import org.eclipse.che.selenium.pageobject.Refactor;
import org.eclipse.che.selenium.pageobject.machineperspective.MachineTerminal;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand All @@ -42,6 +43,7 @@ public class FailMoveItemTest {
@Inject private TestWorkspace workspace;
@Inject private Ide ide;
@Inject private ProjectExplorer projectExplorer;
@Inject private MachineTerminal terminal;
@Inject private Loader loader;
@Inject private CodenvyEditor editor;
@Inject private Refactor refactor;
Expand All @@ -56,6 +58,8 @@ public void prepare() throws Exception {
PROJECT_NAME,
ProjectTemplates.MAVEN_SPRING);
ide.open(workspace);
projectExplorer.waitProjectExplorer();
terminal.waitTerminalTab();
projectExplorer.waitVisibleItem(PROJECT_NAME);
projectExplorer.quickExpandWithJavaScript();
loader.waitOnClosed();
Expand Down

0 comments on commit 38ad488

Please sign in to comment.