Cleanup in scenario1
This commit is contained in:
parent
6fb5cfbfa2
commit
3324f37faa
1 changed files with 5 additions and 8 deletions
|
|
@ -9,16 +9,13 @@ proc test*(session: Session, baseUrl: string) =
|
||||||
|
|
||||||
# Sanity checks
|
# Sanity checks
|
||||||
test "shows sign up":
|
test "shows sign up":
|
||||||
with session:
|
session.checkText("#signup-btn", "Sign up")
|
||||||
checkText "#signup-btn", "Sign up"
|
|
||||||
|
|
||||||
test "shows log in":
|
test "shows log in":
|
||||||
with session:
|
session.checkText("#login-btn", "Log in")
|
||||||
checkText "#login-btn", "Log in"
|
|
||||||
|
|
||||||
test "is empty":
|
test "is empty":
|
||||||
with session:
|
session.check("tr > td.thread-title", isNone)
|
||||||
check "tr > td.thread-title", isNone
|
|
||||||
|
|
||||||
# Logging in
|
# Logging in
|
||||||
test "can login/logout":
|
test "can login/logout":
|
||||||
|
|
@ -29,7 +26,7 @@ proc test*(session: Session, baseUrl: string) =
|
||||||
sendKeys "#login-form input[name='password']", "admin"
|
sendKeys "#login-form input[name='password']", "admin"
|
||||||
|
|
||||||
sendKeys "#login-form input[name='password']", Key.Enter
|
sendKeys "#login-form input[name='password']", Key.Enter
|
||||||
wait(5000)
|
wait 5000
|
||||||
|
|
||||||
# Verify that the user menu has been initialised properly.
|
# Verify that the user menu has been initialised properly.
|
||||||
click "#profile-btn"
|
click "#profile-btn"
|
||||||
|
|
@ -49,7 +46,7 @@ proc test*(session: Session, baseUrl: string) =
|
||||||
sendKeys "#signup-form input[name='password']", "test"
|
sendKeys "#signup-form input[name='password']", "test"
|
||||||
|
|
||||||
click "#signup-modal .create-account-btn"
|
click "#signup-modal .create-account-btn"
|
||||||
wait(5000)
|
wait 5000
|
||||||
|
|
||||||
# Verify that the user menu has been initialised properly.
|
# Verify that the user menu has been initialised properly.
|
||||||
click "#profile-btn"
|
click "#profile-btn"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue