Remove navigate from login/logout and add clear command
This commit is contained in:
parent
465ba1e024
commit
7925c4b8b1
4 changed files with 43 additions and 24 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue