Selenium: add info about known issue #10809 to CheckIntelligenceCommandFromToolbarTest selenium test (#10811)

6.19.x
Sergey Skorik 2018-08-16 17:30:25 +03:00 committed by GitHub
parent feb0065ab1
commit ead8ad4b79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -16,6 +16,7 @@ import static org.eclipse.che.selenium.core.constant.TestMenuCommandsConstants.W
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.ELEMENT_TIMEOUT_SEC;
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.LOAD_PAGE_TIMEOUT_SEC;
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;
@ -30,6 +31,7 @@ import org.eclipse.che.selenium.pageobject.ProjectExplorer;
import org.eclipse.che.selenium.pageobject.Wizard;
import org.eclipse.che.selenium.pageobject.intelligent.CommandsToolbar;
import org.openqa.selenium.By;
import org.openqa.selenium.TimeoutException;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
@ -102,7 +104,13 @@ public class CheckIntelligenceCommandFromToolbarTest {
waitOnAvailablePreviewPage(currentWindow, "Enter your name:");
commandsToolbar.waitTimerValuePattern("\\d\\d:\\d\\d");
commandsToolbar.waitNumOfProcessCounter(3);
try {
commandsToolbar.waitNumOfProcessCounter(2);
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("Known issue https://github.com/eclipse/che/issues/10809");
}
checkTestAppByPreviewButtonAndReturnToIde(currentWindow, "Enter your name:");
commandsToolbar.clickExecStopBtn();