1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-26 03:08:37 +03:00

Fix a 404 test

This commit is contained in:
Artyom 2017-01-27 02:51:17 +03:00
parent 7938770e7b
commit bd800a70bc
No known key found for this signature in database
GPG Key ID: B8E35A33FF522710

View File

@ -243,7 +243,8 @@ categoryTests = session "categories" $ using [chromeCaps] $ do
uriPath url `shouldBe` "/haskell"
checkNotPresent (ByLinkText "Cat 2")
openPage catURL
"body" `shouldHaveText` "Something went wrong"
-- TODO: we should have, like, a 404 page
"body" `shouldHaveText` "500 - Internal Server Error\npowered by Spock"
itemTests :: Spec
itemTests = session "items" $ using [chromeCaps] $ do