diff --git a/src/test/java/de/hsfulda/onses/GuiTest.java b/src/test/java/de/hsfulda/onses/GuiTest.java index 3b93eaa..845c004 100644 --- a/src/test/java/de/hsfulda/onses/GuiTest.java +++ b/src/test/java/de/hsfulda/onses/GuiTest.java @@ -22,4 +22,11 @@ public class GuiTest extends ApplicationTest { void checkWindowsTitle() { assertEquals("Onses - Uno", stage.getTitle()); } + + @Test + @DisplayName("Check if window Switch is working") + void checkSceneSwitch() { + clickOn("#startGameBtn"); + assertEquals("Onses - Uno Game", stage.getTitle()); + } }