Browse Source

test_StayLoggedIn checkbox in LoginGUI

remotes/origin/server
Richard Schmidt 11 months ago
parent
commit
bdca5a288f
  1. 10
      src/test/java/LoginGUITest.java

10
src/test/java/LoginGUITest.java

@ -35,6 +35,16 @@ class LoginGUITest {
assertFalse(loginGUI.isVisible()); 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());
}
} }
Loading…
Cancel
Save