1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 04:07:14 +03:00

[tests] edit-cancel-edit for ecosystem

This commit is contained in:
Artyom 2016-09-18 19:26:47 +03:00
parent a77a36ff17
commit fe70b9f73b

View File

@ -381,6 +381,15 @@ itemTests = session "items" $ using Firefox $ do
val <- getValue (form :// "textarea")
val `shouldBe` "foo *bar*\n\n# Blah"
click (form :// ".cancel")
wd "edit-cancel-edit works" $ do
-- It should not store the edited text if it wasn't saved
do form <- openItemEcosystemEditForm item1
setInput "ehhhh" (form :// "textarea")
click (form :// ".cancel")
do form <- openItemEcosystemEditForm item1
val <- getValue (form :// "textarea")
val `shouldBe` "foo *bar*\n\n# Blah"
click (form :// ".cancel")
-- TODO: notes
describe "items with the same name" $ do