Fix tests
This commit is contained in:
parent
3adba32f1f
commit
8984074809
1 changed files with 3 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ proc categoriesUserTests(session: Session, baseUrl: string) =
|
||||||
click "#new-thread-btn"
|
click "#new-thread-btn"
|
||||||
sendKeys "#thread-title", "Post 3"
|
sendKeys "#thread-title", "Post 3"
|
||||||
|
|
||||||
selectCategory "default"
|
selectCategory "unsorted"
|
||||||
sendKeys "#reply-textarea", "Post 3"
|
sendKeys "#reply-textarea", "Post 3"
|
||||||
|
|
||||||
click "#create-thread-btn"
|
click "#create-thread-btn"
|
||||||
|
|
@ -112,11 +112,11 @@ proc categoriesUserTests(session: Session, baseUrl: string) =
|
||||||
click "#categories-btn"
|
click "#categories-btn"
|
||||||
ensureExists "#categories-list"
|
ensureExists "#categories-list"
|
||||||
|
|
||||||
click "#category-default"
|
click "#category-unsorted"
|
||||||
checkText "#threads-list .thread-title a", "Post 3"
|
checkText "#threads-list .thread-title a", "Post 3"
|
||||||
for element in session.waitForElements("#threads-list .category-name"):
|
for element in session.waitForElements("#threads-list .category-name"):
|
||||||
# Have to user "innerText" because elements are hidden on this page
|
# Have to user "innerText" because elements are hidden on this page
|
||||||
assert element.getProperty("innerText") == "Default"
|
assert element.getProperty("innerText") == "Unsorted"
|
||||||
|
|
||||||
selectCategory "announcements"
|
selectCategory "announcements"
|
||||||
checkText "#threads-list .thread-title a", "Post 2"
|
checkText "#threads-list .thread-title a", "Post 2"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue