Skip to content

Commit 233d6b3

Browse files
ci: set FullScreen to runners test shell
1 parent ba30dd4 commit 233d6b3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/com.espressif.idf.ui.test/src/com/espressif/idf/ui/test/operations/EnvSetupOperations.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@
22

33
import static org.eclipse.swtbot.eclipse.finder.matchers.WidgetMatcherFactory.withPartName;
44

5+
import org.eclipse.core.runtime.Platform;
6+
import org.eclipse.swt.widgets.Display;
7+
import org.eclipse.swt.widgets.Shell;
58
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
69
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
710
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
11+
import org.eclipse.ui.PlatformUI;
812

913
import com.espressif.idf.ui.test.common.configs.DefaultPropertyFetcher;
1014
import com.espressif.idf.ui.test.common.utility.TestWidgetWaitUtility;
@@ -23,6 +27,15 @@ public static void setupEspressifEnv(SWTWorkbenchBot bot) throws Exception
2327
if (SETUP)
2428
return;
2529

30+
Display.getDefault().syncExec(() -> {
31+
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
32+
// Maximize (Windows/Linux/macOS windowed)
33+
shell.setMaximized(true);
34+
if (Platform.OS_WIN32.equals(Platform.getOS()) || Platform.OS_LINUX.equals(Platform.getOS()) || Platform.OS_MACOSX.equals(Platform.getOS())) {
35+
try { shell.setFullScreen(true); } catch (Throwable ignore) {}
36+
}
37+
});
38+
2639
for (SWTBotView view : bot.views(withPartName("Welcome")))
2740
{
2841
view.close();

0 commit comments

Comments
 (0)