Skip to content

Commit

Permalink
Fix NavigateToFileTest selenium test (#11034)
Browse files Browse the repository at this point in the history
* Wait for JDT.LS started message

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>

* Wait for JDT.LS started message in PreviewUrlIntoCommandsEditorTest

Signed-off-by: Valeriy Svydenko <vsvydenk@redhat.com>
  • Loading branch information
Valeriy Svydenko authored and tsmaeder committed Oct 17, 2018
1 parent c656f4b commit 2da3690
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Expand Up @@ -57,6 +57,7 @@ public void prepare() throws Exception {
testProjectServiceClient.importProject(
testWorkspace.getId(), Paths.get(resource.toURI()), PROJ_NAME, ProjectTemplates.PLAIN_JAVA);
ide.open(testWorkspace);
consoles.waitJDTLSProjectResolveFinishedMessage(PROJ_NAME);
}

@Test(priority = 1)
Expand Down
Expand Up @@ -64,6 +64,7 @@ public void prepare() throws Exception {
testProjectServiceClient.importProject(
testWorkspace.getId(), Paths.get(resource.toURI()), PROJ_NAME, ProjectTemplates.PLAIN_JAVA);
ide.open(testWorkspace);
consoles.waitJDTLSProjectResolveFinishedMessage(PROJ_NAME);
}

@Test
Expand Down
Expand Up @@ -30,6 +30,7 @@
import org.eclipse.che.selenium.core.client.TestProjectServiceClient;
import org.eclipse.che.selenium.core.workspace.TestWorkspace;
import org.eclipse.che.selenium.pageobject.CodenvyEditor;
import org.eclipse.che.selenium.pageobject.Consoles;
import org.eclipse.che.selenium.pageobject.Ide;
import org.eclipse.che.selenium.pageobject.Loader;
import org.eclipse.che.selenium.pageobject.Menu;
Expand Down Expand Up @@ -63,6 +64,7 @@ public class NavigateToFileTest {
@Inject private TestProjectServiceClient testProjectServiceClient;
@Inject private TestCommandServiceClient testCommandServiceClient;
@Inject private CommandsPalette commandsPalette;
@Inject private Consoles consoles;

@BeforeClass
public void setUp() throws Exception {
Expand All @@ -79,6 +81,7 @@ public void setUp() throws Exception {
workspace.getId());
ide.open(workspace);
ide.waitOpenedWorkspaceIsReadyToUse();
consoles.waitJDTLSProjectResolveFinishedMessage(PROJECT_NAME);
projectExplorer.waitItem(PROJECT_NAME);
projectExplorer.waitItem(PROJECT_NAME_2);
}
Expand Down

0 comments on commit 2da3690

Please sign in to comment.