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

Use Chrome in tests instead of Firefox

Firefox keeps breaking Selenium support
This commit is contained in:
Artyom 2016-11-15 12:42:47 +03:00
parent 27d4b6d7f6
commit 371c38301a

View File

@ -43,7 +43,7 @@ tests = run $ do
markdownTests
mainPageTests :: Spec
mainPageTests = session "main page" $ using Firefox $ do
mainPageTests = session "main page" $ using Chrome $ do
openGuide "/"
wd "is initially empty" $ do
checkPresent "#categories"
@ -76,7 +76,7 @@ mainPageTests = session "main page" $ using Firefox $ do
height2 `shouldBeInRange` (90, 140)
categoryTests :: Spec
categoryTests = session "categories" $ using Firefox $ do
categoryTests = session "categories" $ using Chrome $ do
openGuide "/"
wd "add a new category" $ do
createCategory "Some category"
@ -242,7 +242,7 @@ categoryTests = session "categories" $ using Firefox $ do
"body" `shouldHaveText` "Something went wrong"
itemTests :: Spec
itemTests = session "items" $ using Firefox $ do
itemTests = session "items" $ using Chrome $ do
openGuide "/"
wd "create a test category" $ do
createCategory "Item test category"
@ -425,7 +425,7 @@ itemTests = session "items" $ using Firefox $ do
-- TODO: merge tests
markdownTests :: Spec
markdownTests = session "markdown" $ using Firefox $ do
markdownTests = session "markdown" $ using Chrome $ do
openGuide "/"
describe "Markdown isn't allowed in category names" $ do
wd "when creating a category" $ do
@ -614,7 +614,7 @@ run ts = do
_site :: IO ()
_site = run $ do
session "_" $ using Firefox $ do
session "_" $ using Chrome $ do
wd "_" $ do
openGuidePage "/"
_pause