Skip to content

Commit 410f4d5

Browse files
Runners: set FullScreen to runners main test shell (#1316)
* ci: set FullScreen to runners test shell
1 parent ba30dd4 commit 410f4d5

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

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

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

5+
import org.eclipse.swt.widgets.Display;
6+
import org.eclipse.swt.widgets.Shell;
57
import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot;
68
import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
79
import org.eclipse.swtbot.swt.finder.widgets.SWTBotShell;
10+
import org.eclipse.ui.PlatformUI;
811

912
import com.espressif.idf.ui.test.common.configs.DefaultPropertyFetcher;
1013
import com.espressif.idf.ui.test.common.utility.TestWidgetWaitUtility;
@@ -23,6 +26,19 @@ public static void setupEspressifEnv(SWTWorkbenchBot bot) throws Exception
2326
if (SETUP)
2427
return;
2528

29+
Display.getDefault().syncExec(() -> {
30+
Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
31+
// Maximize (Windows/Linux/macOS windowed)
32+
shell.setMaximized(true);
33+
try
34+
{
35+
shell.setFullScreen(true);
36+
}
37+
catch (Throwable ignore)
38+
{
39+
}
40+
});
41+
2642
for (SWTBotView view : bot.views(withPartName("Welcome")))
2743
{
2844
view.close();

0 commit comments

Comments
 (0)