Test update for closing windows that are dialogs

This commit is contained in:
dragonmacher 2025-03-12 14:02:38 -04:00
parent 5a31ded2e0
commit c0f2edd2da

View file

@ -384,6 +384,12 @@ public abstract class AbstractDockingTest extends AbstractGuiTest {
return;
}
if (w instanceof DockingDialog dialog) {
DialogComponentProvider component = dialog.getDialogComponent();
close(component);
return;
}
boolean wait = !isOnlyFrame(w);
runSwing(() -> w.setVisible(false), wait);
}