Skip to content

Commit

Permalink
removed Asser.fail() from WorkingWithNodeWsTest selenium test (#8085)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Skorik committed Dec 29, 2017
1 parent 4527154 commit b088a8d
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import static org.eclipse.che.selenium.pageobject.ProjectExplorer.CommandsGoal.BUILD;
import static org.eclipse.che.selenium.pageobject.ProjectExplorer.CommandsGoal.RUN;
import static org.openqa.selenium.support.ui.ExpectedConditions.visibilityOfElementLocated;
import static org.testng.Assert.fail;

import com.google.inject.Inject;
import org.eclipse.che.commons.lang.NameGenerator;
Expand All @@ -35,7 +34,6 @@
import org.eclipse.che.selenium.pageobject.dashboard.workspaces.WorkspaceDetails;
import org.eclipse.che.selenium.pageobject.dashboard.workspaces.Workspaces;
import org.openqa.selenium.By;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.testng.annotations.AfterClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -105,12 +103,7 @@ public void checkNodeJsWsAndRunApp() {
consoles.waitPreviewUrlIsPresent();
seleniumWebDriver.navigate().refresh();
seleniumWebDriver.switchFromDashboardIframeToIde();
try {
consoles.waitPreviewUrlIsPresent();
} catch (TimeoutException ex) {
// Remove try-catch block after issue has been resolved
fail("Known issue https://github.com/eclipse/che/issues/7072");
}
consoles.waitPreviewUrlIsPresent();

// Run the application
projectExplorer.selectItem(PROJECT_NAME);
Expand Down

0 comments on commit b088a8d

Please sign in to comment.