Selenium: fix StacksListTest selenium test according to stacks list changes(#10104)

6.19.x
Sergey Skorik 2018-06-19 11:32:04 +00:00 committed by GitHub
parent 0a0f24308c
commit f76aa4db0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -18,7 +18,6 @@ import static org.eclipse.che.selenium.core.constant.TestStacksConstants.JAVA_MY
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;
import com.google.inject.Inject;
import java.util.ArrayList;
@ -26,7 +25,6 @@ import java.util.Collections;
import org.eclipse.che.selenium.pageobject.dashboard.Dashboard;
import org.eclipse.che.selenium.pageobject.dashboard.stacks.StackDetails;
import org.eclipse.che.selenium.pageobject.dashboard.stacks.Stacks;
import org.openqa.selenium.WebDriverException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
@ -82,7 +80,7 @@ public class StacksListTest {
assertEquals(
stacks.getStackDescription(JAVA.getName()),
"Default Java Stack with JDK 8, Maven and Tomcat.");
assertEquals(stacks.getStackComponents(JAVA.getName()), "JDK, Maven, Tomcat");
assertEquals(stacks.getStackComponents(JAVA.getName()), "Ubuntu, JDK, Maven, Tomcat");
}
@Test
@ -181,12 +179,6 @@ public class StacksListTest {
stackDetails.waitToolbar(stackName);
stackDetails.clickOnAllStacksButton();
stacks.waitToolbarTitleName();
try {
stacks.waitStackItem(stackName);
} catch (WebDriverException ex) {
// remove try-catch block after issue has been resolved
fail("Known issue https://github.com/eclipse/che/issues/9523", ex);
}
stacks.waitStackItem(stackName);
}
}