diff --git a/src/test/java/LoginGUITest.java b/src/test/java/LoginGUITest.java index c3e76af..2fceb23 100644 --- a/src/test/java/LoginGUITest.java +++ b/src/test/java/LoginGUITest.java @@ -35,6 +35,16 @@ class LoginGUITest { assertFalse(loginGUI.isVisible()); } + @Test + public void testStayLoggedInCheckbox() { + // Initially, checkbox should be unchecked + assertFalse(loginGUI.getStayLoggedInCheckbox().isSelected()); + + // Simulate checking the checkbox + loginGUI.getStayLoggedInCheckbox().doClick(); + + assertTrue(loginGUI.getStayLoggedInCheckbox().isSelected()); + } }