Browse Source

add Gui test for scene switch

main
fdai7736 11 months ago
parent
commit
17675a56df
  1. 7
      src/test/java/de/hsfulda/onses/GuiTest.java

7
src/test/java/de/hsfulda/onses/GuiTest.java

@ -22,4 +22,11 @@ public class GuiTest extends ApplicationTest {
void checkWindowsTitle() { void checkWindowsTitle() {
assertEquals("Onses - Uno", stage.getTitle()); assertEquals("Onses - Uno", stage.getTitle());
} }
@Test
@DisplayName("Check if window Switch is working")
void checkSceneSwitch() {
clickOn("#startGameBtn");
assertEquals("Onses - Uno Game", stage.getTitle());
}
} }
Loading…
Cancel
Save