Selenium: add info about known #12315 issue to TheiaBuildPluginTest selenium test (#12316)

6.19.x
Sergey Skorik 2018-12-29 16:38:10 +02:00 committed by GitHub
parent cb5da3faaa
commit e885bbd982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -12,6 +12,7 @@
package org.eclipse.che.selenium.theia;
import static org.eclipse.che.selenium.core.TestGroup.OPENSHIFT;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.LOADER_TIMEOUT_SEC;
import static org.eclipse.che.selenium.core.constant.TestTimeoutsConstants.UPDATING_PROJECT_TIMEOUT_SEC;
import static org.eclipse.che.selenium.pageobject.dashboard.NewWorkspace.Stack.CHE_7_PREVIEW;
@ -40,7 +41,7 @@ import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@Test(groups = OPENSHIFT)
@Test(groups = {OPENSHIFT, UNDER_REPAIR})
public class TheiaBuildPluginTest {
private static final String WORKSPACE_NAME = NameGenerator.generate("wksp-", 5);
private static final String EXPECTED_DEVELOPMENT_HOST_TITLE = "Development Host";
@ -105,8 +106,16 @@ public class TheiaBuildPluginTest {
theiaIde.pressKeyCombination(Keys.LEFT_CONTROL, Keys.LEFT_SHIFT, "p");
theiaProposalForm.waitForm();
theiaProposalForm.enterTextToSearchField(yeomanWizardSearchSequence);
theiaProposalForm.waitProposal("Yeoman Wizard");
theiaProposalForm.clickOnProposal("Yeoman Wizard");
theiaProposalForm.waitForm();
try {
theiaProposalForm.waitForm();
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("Known permanent failure https://github.com/eclipse/che/issues/12315");
}
theiaProposalForm.enterTextToSearchField(pluginNameSearchSequence);
seleniumWebDriverHelper.pressEnter();
theiaProposalForm.clickOnProposal(backendPluginDescription);