diff --git a/yesod-test/ChangeLog.md b/yesod-test/ChangeLog.md index ba4c2b11e..1c857f74c 100644 --- a/yesod-test/ChangeLog.md +++ b/yesod-test/ChangeLog.md @@ -1,5 +1,9 @@ # ChangeLog for yesod-test +## 1.6.18 + +* Add `checkByLabel` to yesod-test. + ## 1.6.17 * Add `chooseByLabel` to yesod-test. [#1842](https://github.com/yesodweb/yesod/pull/1842) diff --git a/yesod-test/Yesod/Test.hs b/yesod-test/Yesod/Test.hs index 4bfb7585a..67183b636 100644 --- a/yesod-test/Yesod/Test.hs +++ b/yesod-test/Yesod/Test.hs @@ -178,6 +178,7 @@ module Yesod.Test , fileByLabelPrefix , fileByLabelSuffix , chooseByLabel + , checkByLabel -- *** CSRF Tokens -- | In order to prevent CSRF exploits, yesod-form adds a hidden input @@ -1716,6 +1717,40 @@ chooseByLabel label = do value <- genericValueFromLabel (==) label addPostParam name value +-- | Finds the @\