Skip to content

Commit

Permalink
Selenium: add selenium tests to UNDER_REPAIR group (#12281)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkorikSergey authored Dec 26, 2018
1 parent cea3f48 commit c578446
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import org.testng.annotations.Test;

/** @author Dmytro Nochevnov */
@Test(groups = UNDER_REPAIR)
public class AutocompleteProposalJavaDocTest {
private static final String PROJECT = "multi-module-java-with-ext-libs";

Expand Down Expand Up @@ -100,7 +101,7 @@ private void openMainClass() {
editor.selectTabByName(APP_CLASS_NAME);
}

@Test(groups = UNDER_REPAIR)
@Test
public void shouldDisplayJavaDocOfClassMethod() throws Exception {
// given
final String expectedJavadocHtmlText =
Expand Down Expand Up @@ -154,7 +155,7 @@ public void shouldWorkAroundAbsentJavaDocOfConstructor() throws IOException {
checkProposalDocumentationHTML("<p>No documentation found.</p>\n");
}

@Test(groups = UNDER_REPAIR)
@Test
public void shouldDisplayAnotherModuleClassJavaDoc() throws IOException {
// when
editor.waitActive();
Expand Down Expand Up @@ -210,7 +211,7 @@ public void shouldReflectChangesInJavaDoc() throws IOException {
editor.waitProposalDocumentationHTML("UPDATE. Implementation of Book interface.");
}

@Test(groups = UNDER_REPAIR)
@Test
public void shouldDisplayJavaDocOfJreClass() throws IOException {
// when
editor.waitActive();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@
package org.eclipse.che.selenium.stack;

import static org.eclipse.che.commons.lang.NameGenerator.generate;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandItem.INSTALL_DEPENDENCIES_COMMAND_ITEM;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandItem.RUN_COMMAND_ITEM;
import static org.eclipse.che.selenium.core.constant.TestProjectExplorerContextMenuConstants.ContextMenuCommandGoals.BUILD_GOAL;
import static org.eclipse.che.selenium.core.constant.TestProjectExplorerContextMenuConstants.ContextMenuCommandGoals.RUN_GOAL;
import static org.eclipse.che.selenium.pageobject.dashboard.NewWorkspace.Stack.CENTOS_NODEJS;
import static org.testng.Assert.fail;

import com.google.common.collect.ImmutableList;
import com.google.inject.Inject;
Expand All @@ -30,6 +32,7 @@
import org.eclipse.che.selenium.pageobject.dashboard.CreateWorkspaceHelper;
import org.eclipse.che.selenium.pageobject.dashboard.Dashboard;
import org.openqa.selenium.By;
import org.openqa.selenium.TimeoutException;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
Expand Down Expand Up @@ -81,15 +84,20 @@ public void checkWorkspaceCreationFromCentosNodeStack() {
projectExplorer.waitProjectInitialization(WEB_NODE_JS_PROJECT);
}

@Test(priority = 1)
@Test(priority = 1, groups = UNDER_REPAIR)
public void checkAngularPatternfyStarterProjectCommands() {
By textOnPreviewPage = By.xpath("//span[text()='UNIFIED MANAGEMENT EXPERIENCE']");

consoles.executeCommandFromProjectExplorer(
ANGULAR_PROJECT,
BUILD_GOAL,
INSTALL_DEPENDENCIES_COMMAND_ITEM.getItem(ANGULAR_PROJECT),
"bower_components/font-awesome");
try {
consoles.executeCommandFromProjectExplorer(
ANGULAR_PROJECT,
BUILD_GOAL,
INSTALL_DEPENDENCIES_COMMAND_ITEM.getItem(ANGULAR_PROJECT),
"bower_components/font-awesome");
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("Known permanent failure https://github.com/eclipse/che/issues/12259");
}

consoles.executeCommandFromProjectExplorer(
ANGULAR_PROJECT, RUN_GOAL, RUN_COMMAND_ITEM.getItem(ANGULAR_PROJECT), "Waiting...");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
package org.eclipse.che.selenium.stack;

import static org.eclipse.che.commons.lang.NameGenerator.generate;
import static org.eclipse.che.selenium.core.TestGroup.UNDER_REPAIR;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandItem.INSTALL_DEPENDENCIES_COMMAND_ITEM;
import static org.eclipse.che.selenium.core.constant.TestIntelligentCommandsConstants.CommandItem.RUN_COMMAND_ITEM;
import static org.eclipse.che.selenium.core.constant.TestProjectExplorerContextMenuConstants.ContextMenuCommandGoals.BUILD_GOAL;
Expand Down Expand Up @@ -86,15 +87,20 @@ public void checkWorkspaceCreationFromNodeStack() {
projectExplorer.waitProjectInitialization(WEB_NODE_JS_PROJECT);
}

@Test(priority = 1)
@Test(priority = 1, groups = UNDER_REPAIR)
public void checkAngularPatternfyStarterProjectCommands() {
By textOnPreviewPage = By.xpath("//span[text()='UNIFIED MANAGEMENT EXPERIENCE']");

consoles.executeCommandFromProjectExplorer(
ANGULAR_PROJECT,
BUILD_GOAL,
INSTALL_DEPENDENCIES_COMMAND_ITEM.getItem(ANGULAR_PROJECT),
"bower_components/font-awesome");
try {
consoles.executeCommandFromProjectExplorer(
ANGULAR_PROJECT,
BUILD_GOAL,
INSTALL_DEPENDENCIES_COMMAND_ITEM.getItem(ANGULAR_PROJECT),
"bower_components/font-awesome");
} catch (TimeoutException ex) {
// remove try-catch block after issue has been resolved
fail("Known permanent failure https://github.com/eclipse/che/issues/12259");
}

consoles.executeCommandFromProjectExplorer(
ANGULAR_PROJECT, RUN_GOAL, RUN_COMMAND_ITEM.getItem(ANGULAR_PROJECT), "Waiting...");
Expand Down

0 comments on commit c578446

Please sign in to comment.