diff --git a/yesod-test/ChangeLog.md b/yesod-test/ChangeLog.md index 55daaf22..f613c7d3 100644 --- a/yesod-test/ChangeLog.md +++ b/yesod-test/ChangeLog.md @@ -1,3 +1,8 @@ +## 1.6.2 + +* Add byLabel-related functions like byLabelContain +[#1482](https://github.com/yesodweb/yesod/pull/1482) + ## 1.6.1 * Fix the build with `base-4.11` (GHC 8.4). diff --git a/yesod-test/Yesod/Test.hs b/yesod-test/Yesod/Test.hs index b3d49320..22fed19c 100644 --- a/yesod-test/Yesod/Test.hs +++ b/yesod-test/Yesod/Test.hs @@ -76,8 +76,14 @@ module Yesod.Test -- on currently displayed label names. , byLabel , byLabelExact + , byLabelContain + , byLabelPrefix + , byLabelSuffix , fileByLabel , fileByLabelExact + , fileByLabelContain + , fileByLabelPrefix + , fileByLabelSuffix -- *** CSRF Tokens -- | In order to prevent CSRF exploits, yesod-form adds a hidden input @@ -169,8 +175,8 @@ import GHC.Exts (Constraint) type HasCallStack = (() :: Constraint) #endif -{-# DEPRECATED byLabel "This function seems to have multiple bugs (ref: https://github.com/yesodweb/yesod/pull/1459). Use byLabelExact instead" #-} -{-# DEPRECATED fileByLabel "This function seems to have multiple bugs (ref: https://github.com/yesodweb/yesod/pull/1459). Use fileByLabelExact instead" #-} +{-# DEPRECATED byLabel "This function seems to have multiple bugs (ref: https://github.com/yesodweb/yesod/pull/1459). Use byLabelExact, byLabelContain, byLabelPrefix or byLabelSuffix instead" #-} +{-# DEPRECATED fileByLabel "This function seems to have multiple bugs (ref: https://github.com/yesodweb/yesod/pull/1459). Use fileByLabelExact, fileByLabelContain, fileByLabelPrefix or fileByLabelSuffix instead" #-} -- | The state used in a single test case defined using 'yit' -- @@ -659,6 +665,48 @@ byLabelExact :: T.Text -- ^ The text in the @\