packages feed

hspec-webdriver 1.0.3 → 1.1.0

raw patch · 3 files changed

+18/−5 lines, 3 filesdep ~webdriverPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: webdriver

API changes (from Hackage documentation)

- Test.Hspec.WebDriver: instance Bounded BrowserDefaults
- Test.Hspec.WebDriver: instance Enum BrowserDefaults
- Test.Hspec.WebDriver: instance Eq BrowserDefaults
- Test.Hspec.WebDriver: instance Eq multi => Example (WdExample multi)
- Test.Hspec.WebDriver: instance Exception AbortSession
- Test.Hspec.WebDriver: instance Show AbortSession
- Test.Hspec.WebDriver: instance Show BrowserDefaults
- Test.Hspec.WebDriver: instance TestCapabilities BrowserDefaults
- Test.Hspec.WebDriver: instance Typeable AbortSession
- Test.Hspec.WebDriver: instance Using BrowserDefaults
- Test.Hspec.WebDriver: instance Using [BrowserDefaults]
+ Test.Hspec.WebDriver: instance GHC.Classes.Eq Test.Hspec.WebDriver.BrowserDefaults
+ Test.Hspec.WebDriver: instance GHC.Classes.Eq multi => Test.Hspec.Core.Example.Example (Test.Hspec.WebDriver.WdExample multi)
+ Test.Hspec.WebDriver: instance GHC.Enum.Bounded Test.Hspec.WebDriver.BrowserDefaults
+ Test.Hspec.WebDriver: instance GHC.Enum.Enum Test.Hspec.WebDriver.BrowserDefaults
+ Test.Hspec.WebDriver: instance GHC.Exception.Exception Test.Hspec.WebDriver.AbortSession
+ Test.Hspec.WebDriver: instance GHC.Show.Show Test.Hspec.WebDriver.AbortSession
+ Test.Hspec.WebDriver: instance GHC.Show.Show Test.Hspec.WebDriver.BrowserDefaults
+ Test.Hspec.WebDriver: instance Test.Hspec.WebDriver.TestCapabilities Test.Hspec.WebDriver.BrowserDefaults
+ Test.Hspec.WebDriver: instance Test.Hspec.WebDriver.Using Test.Hspec.WebDriver.BrowserDefaults
+ Test.Hspec.WebDriver: instance Test.Hspec.WebDriver.Using [Test.Hspec.WebDriver.BrowserDefaults]
- Test.Hspec.WebDriver: it :: Example a => String -> a -> SpecWith (Arg a)
+ Test.Hspec.WebDriver: it :: (?loc :: CallStack, Example a) => String -> a -> SpecWith (Arg a)

Files

Changelog.md view
@@ -1,3 +1,9 @@+## 1.1.0++* Support for webdriver 0.8.  The API in hspec-webdriver itself did not change, but we re-export WebDriver.Commands so I bumped the+  major version. In fact, there were only a few minor changes in the Commands module (most of the changes in webdriver+  were to session management which is handled internally), so it is likely that your test suite will compile without changes.+ ## 1.0.3  * Allow newer versions of hspec and HUnit
Test/Hspec/WebDriver.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE OverloadedStrings, FlexibleInstances, DeriveDataTypeable, TypeFamilies #-}+{-# LANGUAGE OverloadedStrings, FlexibleInstances, DeriveDataTypeable, TypeFamilies, CPP #-} -- | Write hspec tests that are webdriver tests, automatically managing the webdriver sessions. -- -- This module re-exports functions from "Test.Hspec" and "Test.WebDriver.Commands" and it is@@ -76,7 +76,6 @@   , module Test.WebDriver.Commands ) where -import Control.Applicative ((<$>), Applicative) import Control.Concurrent.MVar (MVar, takeMVar, putMVar, newEmptyMVar) import Control.Exception (SomeException(..)) import Control.Exception.Lifted (try, Exception, onException, throwIO)@@ -86,10 +85,14 @@ import Data.Default (Default(..)) import Data.Typeable (Typeable, cast) import Data.IORef (newIORef, writeIORef, readIORef)-import Data.Traversable (traverse) import Test.HUnit (assertEqual, assertFailure) import qualified Data.Text as T +#if !MIN_VERSION_base(4,8,0)+import Control.Applicative ((<$>), Applicative)+import Data.Traversable (traverse)+#endif+ import Test.Hspec hiding (shouldReturn, shouldBe, shouldSatisfy, shouldThrow, pending, pendingWith, example) import Test.Hspec.Core.Spec (Result(..), Item(..), Example(..), SpecTree, Tree(..), fromSpecList, runSpecM) import qualified Test.Hspec as H@@ -346,7 +349,11 @@          create = do             s <- W.mkSession cfg+#if MIN_VERSION_webdriver(0,7,0)+            W.runWD s $ createSession $ W.wdCapabilities cfg+#else             W.runWD s $ createSession [] $ W.wdCapabilities cfg+#endif          close st | length mvars - 1 == n = mapM_ ((`W.runWD` closeSession) . snd) $ stSessionMap st                  | otherwise = putMVar (mvars !! (n + 1)) st
hspec-webdriver.cabal view
@@ -1,5 +1,5 @@ name:              hspec-webdriver-version:           1.0.3+version:           1.1.0 cabal-version:     >= 1.8 build-type:        Simple synopsis:          Write end2end web application tests using webdriver and hspec@@ -39,4 +39,4 @@                  , text                 >= 0.11                  , transformers         >= 0.3                  , unordered-containers >= 0.2-                 , webdriver            >= 0.6.1 && < 0.7+                 , webdriver            >= 0.6.1 && < 0.9