Skip to content

Commit

Permalink
Selenium: fix expected values list in NavigateToFileTest test (#8949)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Skorik committed Feb 28, 2018
1 parent 95d25fd commit d1d8e9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
package org.eclipse.che.selenium.pageobject;

import static java.lang.String.format;
import static java.util.concurrent.TimeUnit.MILLISECONDS;
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.LOAD_PAGE_TIMEOUT_SEC;
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.REDRAW_UI_ELEMENTS_TIMEOUT_SEC;
import static org.openqa.selenium.Keys.ALT;
Expand Down Expand Up @@ -159,8 +158,8 @@ public void selectFileByName(String nameOfFile) {
.until(
visibilityOfElementLocated(
By.xpath(format(Locators.FILE_NAME_LIST_SELECT, nameOfFile))));

WaitUtils.sleepQuietly(500, MILLISECONDS);
webElement.click();
testWebElementRenderChecker.waitElementIsRendered(webElement);
actionsFactory.createAction(seleniumWebDriver).doubleClick(webElement).perform();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,14 @@ private Object[][] dataToCheckNavigateByNameWithSpecialSymbols() {
{
"we?.xml",
ImmutableMap.of(
1, "web.xml (/NavigateFile)",
2, "web.xml (/NavigateFile_2)")
1, "web.xml (/NavigateFile/src/main/webapp/WEB-INF)",
2, "web.xml (/NavigateFile_2/src/main/webapp/WEB-INF)")
},
{
"gu?ss_n?m.j?p",
ImmutableMap.of(
1, "web.xml (/NavigateFile)",
2, "web.xml (/NavigateFile_2)")
1, "guess_num.jsp (/NavigateFile/src/main/webapp/WEB-INF/jsp)",
2, "guess_num.jsp (/NavigateFile_2/src/main/webapp/WEB-INF/jsp)")
}
};
}
Expand Down

0 comments on commit d1d8e9e

Please sign in to comment.