Skip to content

Commit

Permalink
Selenium: change method for expanding test projects in ResolveDepende…
Browse files Browse the repository at this point in the history
…ncyAfterRecreateProjectTest test (#8851)
  • Loading branch information
Sergey Skorik committed Feb 21, 2018
1 parent f53f172 commit aee9f62
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
public class ResolveDependencyAfterRecreateProjectTest {
private static final String PROJECT_NAME1 = generate("project1", 4);
private static final String PROJECT_NAME2 = generate("project2", 4);
private static final String PATH_FOR_EXPAND =
private static final String PATH_TO_EXPAND = "/src/main/java/org.eclipse.che.examples";
private static final String PATH_TO_FILE =
"/src/main/java/org/eclipse/che/examples/GreetingController.java";

@Inject private TestWorkspace workspace;
Expand All @@ -66,8 +67,8 @@ public void updateDependencyWithInheritTest() throws InterruptedException {
projectExplorer.waitItem(PROJECT_NAME1);
mavenPluginStatusBar.waitClosingInfoPanel();
notificationsPopupPanel.waitProgressPopupPanelClose();
projectExplorer.quickExpandWithJavaScript();
projectExplorer.openItemByPath(PROJECT_NAME1 + PATH_FOR_EXPAND);
projectExplorer.expandPathInProjectExplorer(PROJECT_NAME1 + PATH_TO_EXPAND);
projectExplorer.openItemByPath(PROJECT_NAME1 + PATH_TO_FILE);
editor.waitActive();
editor.waitAllMarkersDisappear(ERROR_MARKER);

Expand All @@ -76,10 +77,10 @@ public void updateDependencyWithInheritTest() throws InterruptedException {

projectExplorer.waitItem(PROJECT_NAME2);
projectExplorer.selectVisibleItem(PROJECT_NAME2);
projectExplorer.quickExpandWithJavaScript();
projectExplorer.expandPathInProjectExplorer(PROJECT_NAME2 + PATH_TO_EXPAND);

try {
projectExplorer.openItemByPath(PROJECT_NAME2 + PATH_FOR_EXPAND);
projectExplorer.openItemByPath(PROJECT_NAME2 + PATH_TO_FILE);
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("Known issue https://github.com/eclipse/che/issues/8791");
Expand Down

0 comments on commit aee9f62

Please sign in to comment.