releng: Fix TmfPerspectiveManagerTest on Mac
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Thu, 9 Feb 2017 16:44:02 +0000 (11:44 -0500)
committerMarc-André Laperle <marc-andre.laperle@ericsson.com>
Wed, 15 Feb 2017 14:24:34 +0000 (09:24 -0500)
Preferences should be opened with the util method.

Change-Id: I572d74c9335b1e26c24d8a797ccc2d6b63bbfe9d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/90758
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
releng/org.eclipse.tracecompass.integration.swtbot.tests/src/org/eclipse/tracecompass/integration/swtbot/tests/perspectives/TmfPerspectiveManagerTest.java

index e5f7a3c95c4df4c02db7d37d7a5e095cb4f88c26..18f92d1995622cc75d6b44ab5fdf83ecf2b99586 100644 (file)
@@ -196,7 +196,7 @@ public class TmfPerspectiveManagerTest {
     }
 
     private static void setSwitchToPerspectivePreference(String value) {
-        fBot.menu().menu("Window", "Preferences").click();
+        SWTBotUtils.openPreferences(fBot);
         SWTBot shellBot = fBot.shell("Preferences").bot();
         shellBot.tree().expandNode("Tracing", "Perspectives").select();
         shellBot.radioInGroup(value, "Open the associated perspective when a trace is opened").click();
@@ -204,7 +204,7 @@ public class TmfPerspectiveManagerTest {
     }
 
     private static void assertSwitchToPerspectivePreference(String value) {
-        fBot.menu().menu("Window", "Preferences").click();
+        SWTBotUtils.openPreferences(fBot);
         SWTBot shellBot = fBot.shell("Preferences").bot();
         shellBot.tree().expandNode("Tracing", "Perspectives").select();
         assertTrue(shellBot.radioInGroup(value, "Open the associated perspective when a trace is opened").isSelected());
This page took 0.025973 seconds and 5 git commands to generate.