From 38c5f0dd5f75ad25a12deba062116d311250b273 Mon Sep 17 00:00:00 2001 From: Oleksii Korniienko Date: Mon, 31 May 2021 09:56:23 +0200 Subject: [PATCH] JBIDE-27821: reworked "addEnvironment" due to https://github.com/eclipse/reddeer/pull/2120 Signed-off-by: Oleksii Korniienko --- .../tests/environment/AbstractEnvironmentTest.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/itests/org.jboss.tools.quarkus.integration.tests/src/org/jboss/tools/quarkus/integration/tests/environment/AbstractEnvironmentTest.java b/itests/org.jboss.tools.quarkus.integration.tests/src/org/jboss/tools/quarkus/integration/tests/environment/AbstractEnvironmentTest.java index 888a9205..6455ee13 100644 --- a/itests/org.jboss.tools.quarkus.integration.tests/src/org/jboss/tools/quarkus/integration/tests/environment/AbstractEnvironmentTest.java +++ b/itests/org.jboss.tools.quarkus.integration.tests/src/org/jboss/tools/quarkus/integration/tests/environment/AbstractEnvironmentTest.java @@ -13,16 +13,12 @@ import org.eclipse.reddeer.common.wait.TimePeriod; import org.eclipse.reddeer.common.wait.WaitUntil; import org.eclipse.reddeer.eclipse.condition.ConsoleHasText; +import org.eclipse.reddeer.eclipse.debug.ui.launchConfigurations.EnvironmentTab; import org.eclipse.reddeer.eclipse.debug.ui.launchConfigurations.RunConfigurationsDialog; import org.eclipse.reddeer.eclipse.ui.console.ConsoleView; -import org.eclipse.reddeer.swt.impl.button.OkButton; -import org.eclipse.reddeer.swt.impl.button.PushButton; -import org.eclipse.reddeer.swt.impl.ctab.DefaultCTabItem; import org.eclipse.reddeer.swt.impl.shell.DefaultShell; -import org.eclipse.reddeer.swt.impl.text.LabeledText; import org.jboss.tools.quarkus.integration.tests.launch.configuration.AbstractLaunchConfigurationTest; import org.jboss.tools.quarkus.reddeer.common.QuarkusLabels.Shell; -import org.jboss.tools.quarkus.reddeer.common.QuarkusLabels.TextLabels; import org.jboss.tools.quarkus.reddeer.ui.launch.QuarkusLaunchConfigurationTabGroup; /** @@ -49,11 +45,9 @@ public void addEnvironment(String projectName, RunConfigurationsDialog runDialog QuarkusLaunchConfigurationTabGroup launchConfiguration) { runDialog.open(); runDialog.select(launchConfiguration, projectName); - new DefaultCTabItem("Environment").activate(); - new PushButton("Add...").click(); - new LabeledText(TextLabels.NAME).setText(ENVIRONMENT_NAME); - new LabeledText(TextLabels.VALUE).setText("true"); - new OkButton().click(); + EnvironmentTab envTab = new EnvironmentTab(); + envTab.activate(); + envTab.add(ENVIRONMENT_NAME, "true"); new DefaultShell(Shell.RUN_CONFIGURATION).setFocus(); runDialog.close(true); }