From 17675a56dfeb6db1fde854b121a5dd9028dd44c7 Mon Sep 17 00:00:00 2001 From: fdai7736 Date: Tue, 6 Feb 2024 21:51:45 +0100 Subject: [PATCH] add Gui test for scene switch --- src/test/java/de/hsfulda/onses/GuiTest.java | 7 +++++++ 1 file changed, 7 insertions(+) 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()); + } }