add user delete thread test
This commit is contained in:
parent
f5e1a71e6e
commit
16abee0596
1 changed files with 13 additions and 1 deletions
|
|
@ -40,6 +40,18 @@ proc userTests(session: Session, baseUrl: string) =
|
|||
checkText "#thread-title .title-text", userTitleStr
|
||||
checkText ".original-post div.post-content", userContentStr
|
||||
|
||||
test "can delete thread":
|
||||
with session:
|
||||
click userTitleStr, LinkTextSelector
|
||||
|
||||
click ".post-buttons .delete-button"
|
||||
|
||||
# click delete confirmation
|
||||
click "#delete-modal .delete-btn"
|
||||
|
||||
# Make sure the forum post is gone
|
||||
checkIsNone userTitleStr, LinkTextSelector
|
||||
|
||||
session.logout()
|
||||
|
||||
proc anonymousTests(session: Session, baseUrl: string) =
|
||||
|
|
@ -158,4 +170,4 @@ proc test*(session: Session, baseUrl: string) =
|
|||
|
||||
unBanUser(session, baseUrl)
|
||||
|
||||
session.navigate(baseUrl)
|
||||
session.navigate(baseUrl)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue