Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add info about known issue #8319

Merged
merged 3 commits into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import static javax.ws.rs.core.MediaType.APPLICATION_FORM_URLENCODED;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.fail;

import com.google.inject.Inject;
import java.net.URL;
Expand All @@ -37,14 +38,16 @@
import org.eclipse.che.selenium.pageobject.debug.DebugPanel;
import org.eclipse.che.selenium.pageobject.debug.JavaDebugConfig;
import org.eclipse.che.selenium.pageobject.intelligent.CommandsPalette;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

/** @author Musienko Maxim */
public class ChangeVariableWithEvaluatingTest {
private static final String PROJECT_NAME_CHANGE_VARIABLE =
NameGenerator.generate(ChangeVariableWithEvaluatingTest.class.getSimpleName(), 2);

private static final Logger LOG = LoggerFactory.getLogger(ChangeVariableWithEvaluatingTest.class);
private static final String START_DEBUG_COMMAND_NAME = "startDebug";
private static final String CLEAN_TOMCAT_COMMAND_NAME = "cleanTomcat";
private static final String BUILD_COMMAND_NAME = "build";
Expand Down Expand Up @@ -148,7 +151,15 @@ public void changeVariableTest() throws Exception {
debugPanel.waitExpectedResultInEvaluateExpression("false");
debugPanel.clickCloseEvaluateBtn();
debugPanel.clickOnButton(DebugPanel.DebuggerActionButtons.RESUME_BTN_ID);
assertTrue(instToRequestThread.get().contains("Sorry, you failed. Try again later!"));
try {
assertTrue(instToRequestThread.get().contains("Sorry, you failed. Try again later!"));
} catch (AssertionError ex) {
LOG.warn(
ChangeVariableWithEvaluatingTest.class.getSimpleName()
+ " has next message: "
+ instToRequestThread.get());
fail("Known issue: https://github.com/eclipse/che/issues/8105");
}
}

private void buildProjectAndOpenMainClass() {
Expand Down