mirror of
https://github.com/aelve/guide.git
synced 2024-11-30 01:23:04 +03:00
[tests] Test pros/cons hiding with 2 items
This commit is contained in:
parent
7d6a760f63
commit
dec2688d3f
@ -187,17 +187,20 @@ categoryTests = session "categories" $ using Firefox $ do
|
||||
click =<< select (form :// ".cancel")
|
||||
wd "section is shown in an item" $ do
|
||||
createItem "some item"
|
||||
shouldBeDisplayed =<< select ".item-traits"
|
||||
createItem "another item"
|
||||
mapM_ shouldBeDisplayed =<< selectAll ".item-traits"
|
||||
wd "section isn't shown after unchecking the checkbox" $ do
|
||||
form <- openCategoryEditForm
|
||||
click =<< select (form :// HasText "Pros/cons enabled" :// "input")
|
||||
click =<< select (form :// ".save")
|
||||
waitUntil 2 (expect . not =<< isDisplayed =<< select ".item-traits")
|
||||
waitUntil 2 $
|
||||
expect . not =<< anyM isDisplayed =<< selectAll ".item-traits"
|
||||
wd "section is shown again after checking the checkbox" $ do
|
||||
form <- openCategoryEditForm
|
||||
click =<< select (form :// HasText "Pros/cons enabled" :// "input")
|
||||
click =<< select (form :// ".save")
|
||||
waitUntil 2 (expect =<< isDisplayed =<< select ".item-traits")
|
||||
waitUntil 2 $
|
||||
expect =<< allM isDisplayed =<< selectAll ".item-traits"
|
||||
-- Ecosystem enabled
|
||||
-- Save works
|
||||
-- Cancel works
|
||||
|
Loading…
Reference in New Issue
Block a user