File tree Expand file tree Collapse file tree 1 file changed +16
-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 +16
-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 .swt .widgets .Display ;
6+ import org .eclipse .swt .widgets .Shell ;
57import org .eclipse .swtbot .eclipse .finder .SWTWorkbenchBot ;
68import org .eclipse .swtbot .eclipse .finder .widgets .SWTBotView ;
79import org .eclipse .swtbot .swt .finder .widgets .SWTBotShell ;
10+ import org .eclipse .ui .PlatformUI ;
811
912import com .espressif .idf .ui .test .common .configs .DefaultPropertyFetcher ;
1013import 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 ();
You can’t perform that action at this time.
0 commit comments