File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
tests/com.espressif.idf.ui.test/src/com/espressif/idf/ui/test/operations Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 22
33import 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 ;
58import org .eclipse .swtbot .eclipse .finder .SWTWorkbenchBot ;
69import org .eclipse .swtbot .eclipse .finder .widgets .SWTBotView ;
710import org .eclipse .swtbot .swt .finder .widgets .SWTBotShell ;
11+ import org .eclipse .ui .PlatformUI ;
812
913import com .espressif .idf .ui .test .common .configs .DefaultPropertyFetcher ;
1014import 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 ();
You can’t perform that action at this time.
0 commit comments