22 lines
603 B
Haskell
22 lines
603 B
Haskell
{-# LANGUAGE NoImplicitPrelude #-}
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
{-# OPTIONS -Wno-unused-top-binds #-}
|
|
module Handler.HomeSpec (spec) where
|
|
|
|
import TestImport
|
|
|
|
spec :: Spec
|
|
-- spec = test_spec
|
|
spec = return () -- TODO: tests deactivated -- build/release problem
|
|
|
|
test_spec :: Spec
|
|
test_spec = withApp $ do
|
|
describe "Homepage" $ do
|
|
it "loads the index and checks it looks right" $ do
|
|
request $ do
|
|
setMethod "GET"
|
|
setUrl NewsR
|
|
addRequestHeader ("Accept-Language", "de")
|
|
statusIs 200
|
|
htmlAnyContain "h1" "Aktuelles"
|