Remove navigate from login/logout and add clear command

This commit is contained in:
Joey Yakimowich-Payne 2018-07-23 10:13:06 +09:00
commit 7925c4b8b1
4 changed files with 43 additions and 24 deletions

View file

@ -20,10 +20,10 @@ proc test*(session: Session, baseUrl: string) =
# Logging in
test "can login/logout":
with session:
login(baseUrl, "admin", "admin")
login("admin", "admin")
# Check whether we can log out.
logout(baseUrl)
logout()
# Verify we have logged out by looking for the log in button.
ensureExists "#login-btn"
@ -31,4 +31,4 @@ proc test*(session: Session, baseUrl: string) =
with session:
register("test", "test")
session.logout(baseUrl)
session.logout()