Mark Wotton
1bc30deee7
import Control.Applicative for 7.8.4
2017-06-15 13:30:58 -04:00
Mark Wotton
2a112b5516
-Werror fixes
2017-06-15 12:17:49 -04:00
Mark Wotton
ee9ef1eac5
add clickOn function ( closes #1406 )
2017-06-14 13:40:44 -04:00
Amitai Burstein
b8d2647a6a
Add assertNotEq
2017-04-11 20:46:49 +03:00
Michael Snoyman
cdc6c8ae04
Version bumps/changelog updates
2017-02-08 11:20:31 +02:00
Michael Snoyman
aefd074efa
Cleanup GHC 8 redundant constraints
2017-02-05 13:35:12 +02:00
Michael Snoyman
3dc2d10b30
Compile with -Wall -Werror
2017-02-05 12:09:18 +02:00
Michael Snoyman
03c1ee4807
Compilation fix for GHC 7.8
2016-12-07 08:54:53 -05:00
Michael Snoyman
9c38a4b08e
Version bump for #1314
2016-12-01 06:53:41 +02:00
Jason Whittle
7b12f61a91
yesod-test: add getLocation test helper.
2016-11-30 18:05:48 -05:00
Amitaibu
827040f279
Fix error
2016-09-01 15:22:25 +03:00
Amitaibu
6ddfd07032
Add since tag
2016-09-01 14:20:29 +03:00
Amitaibu
ac0229dff0
Bump cabal version and export function
2016-09-01 14:19:38 +03:00
Amitaibu
21e0ef11ba
Add bodyNotContains function
2016-09-01 14:09:10 +03:00
Michael Snoyman
dae1a34d4c
Version bump for #1259
2016-08-10 08:48:57 +03:00
Chris Allen
13d9f58db7
Added assertEq, deprecated assertEqual
...
use assertEq instead
2016-08-10 00:08:24 -05:00
Maxime Bourget
6addf3923d
Changes spec name and bump version to 1.5.1.1
2016-04-12 21:42:33 +01:00
Maxime Bourget
3fecebd5ba
Allows more that one space between css selector.
...
This is needed to support addToken_ workaround before the fix.
Before the fix, an extra space was needed in the selector like this
example:
addToken "form.foo "
With the fix adding the missing space, code already adding a space
will end up with two spaces between the scope selector and the input one :
form.foo input[name=token_]
2016-04-11 21:58:50 +01:00
Maxime Bourget
62fc67a444
Fix addToken_ needing a trailing space to work.
...
The fix can add spaces in place where none or only one where expected.
The css parser has been modified to remove trailing or multiple spaces.
This might be a bit more lax that official CSS spec.
2016-04-11 21:15:27 +01:00
Mark Wotton
94109d9406
duplicated typesig
2016-03-21 17:46:28 -04:00
Mark Wotton
23278d651e
documentation fixes & formatting #3
2016-03-21 17:41:25 -04:00
Mark Wotton
b21e64637f
documentation fixes #2
2016-03-21 17:21:14 -04:00
Mark Wotton
f2341355c1
documentation fixes
2016-03-21 17:20:02 -04:00
Mark Wotton
ef00ddd80b
test result value, return URL in Right branch, document meaning in haddocks
2016-03-21 17:16:28 -04:00
Mark Wotton
92f24a73dc
better error messages for followRedirect
2016-03-21 13:44:26 -04:00
Mark Wotton
f381c69449
expand range of acceptable redirection codes
2016-03-21 13:43:36 -04:00
Mark Wotton
29c335af56
use Either rather than throwing an exception
2016-03-21 13:39:49 -04:00
Mark Wotton
62961ef931
fix exception test
2016-03-21 12:34:38 -04:00
Mark Wotton
df6834a335
add followRedirect
2016-03-21 12:13:23 -04:00
Michael Snoyman
89e39464a1
Changelog for #1191
2016-03-21 12:57:52 +02:00
Chris Allen
289471d122
appropriate version bump
2016-03-20 12:50:17 -05:00
Chris Allen
776007ffa3
better wording
2016-03-17 14:35:15 -05:00
Chris Allen
7e10d87492
better error formatting, bumping version
2016-03-17 14:33:15 -05:00
Chris Allen
57b7ad8eda
better error provenance for stuff invoking withResponse'
2016-03-17 14:18:38 -05:00
Greg Weber
ac6e8f6195
version bump for 1.5.0.1
2015-08-25 23:17:56 -07:00
Maximilian Tagher
479a19e65a
yesod-test: have request not default to the form-urlencoded Content-Type
...
* Only set the Content-Type to "application/x-www-form-urlencoded" if key-value pairs are added
* Previously the "application/x-www-form-urlencoded" Content-Type would be added even if you set a binary request body.
* You could add your own Content-Type with addRequestHeader, but this resulted in multiple Content-Type headers.
* Closes #1063
2015-08-24 20:27:28 -07:00
Greg Weber
a28f4f3fa4
Changelog for yesod-test 1.5
2015-08-20 17:44:31 -07:00
Greg Weber
95e6084634
Merge branch 'test-middleware'
...
Conflicts:
yesod-test/yesod-test.cabal
2015-08-20 17:38:30 -07:00
Greg Weber
80ea70c39e
Merge remote-tracking branch 'MaxGabriel/removeDeprecatedNonces'
...
Conflicts:
yesod-test/Yesod/Test.hs
2015-08-20 17:36:08 -07:00
Greg Weber
8b00b373b8
release yesod-test 1.4.4
2015-08-20 17:29:32 -07:00
Maximilian Tagher
374195b4fa
Add functions to yesod-test to support the new CSRF middleware
2015-08-19 22:18:30 -07:00
Greg Weber
a938f977b5
version bump for middleware accessebility in yesod-test
2015-08-05 17:48:32 -07:00
Greg Weber
b92ae3093a
configurable middleware
2015-08-05 17:48:27 -07:00
Michael Snoyman
6751d24d75
Version bumps
2015-02-09 07:25:08 +02:00
Maximilian Tagher
b9246d26a1
Update the example in the yesod-test README
...
* Fixes a few typos/formatting issues as well
* Closes #920
2015-02-07 23:13:05 -08:00
Michael Snoyman
5a4c7e7fa0
Version bump
2015-02-04 17:46:07 +02:00
Maximilian Tagher
3de93e3197
Remove deprecated addNonce and addNonce_
2015-01-28 08:42:50 -08:00
Maximilian Tagher
e26f6f5fbe
Update API documentation to take the nonce/token switchover into account.
2015-01-27 20:01:06 -08:00
Maximilian Tagher
94af9c6bdd
Move yesod-test to using the term "token" instead of nonce.
...
Addresses part #1 of #914
2015-01-27 19:50:06 -08:00
Maximilian Tagher
cb4785cf28
Document much of yesod-test, especially the "Making Requests" section
2015-01-25 15:20:25 -08:00
Michael Snoyman
e96d1c3622
Version bumps
2014-12-30 05:58:39 +02:00
Greg Weber
5e84dbb8ab
change get_ to get
2014-12-29 16:17:37 -08:00
Michael Snoyman
bed6dafce8
Doc link updates
2014-12-21 15:23:52 +02:00
Michael Snoyman
7fcddb6ee3
Provide Example instance for YesodExample
2014-11-20 02:14:06 +02:00
Michael Snoyman
6568e39383
Version bump
2014-11-17 10:06:43 +02:00
Simon Hengel
89e4e96698
yesod-test: Fix deprecation warnings
2014-11-11 22:07:31 +08:00
Michael Snoyman
b152faecf3
Version bump
2014-11-10 07:21:12 +02:00
Simon Hengel
b6c894061e
Forward compatibility with Hspec 2.0
2014-11-09 20:15:50 +08:00
Michael Snoyman
b578e67c92
Version bump
2014-10-03 08:31:44 +03:00
Erik de Castro Lopo
d31e2d0988
yesod-test : Fix two more CssQuery parser problems.
...
Closes #834
2014-10-02 21:26:24 +10:00
Michael Snoyman
9ff2c243f2
Two more failing yesod-test cases.
...
Pinging @erikd.
2014-10-01 14:11:27 +03:00
Michael Snoyman
7983e7cbac
Version bump
2014-10-01 06:56:58 +03:00
Erik de Castro Lopo
58bf5223c0
yesod-test : Fix parsing of descendent selector in CSS query parser.
...
Closes #834
2014-10-01 06:24:57 +10:00
Michael Snoyman
c8e2aaf2a8
Fix test
2014-09-30 13:37:10 +03:00
Michael Snoyman
4b85a66d93
Simpler demonstration of descendent selector bug
2014-09-30 13:34:32 +03:00
Michael Snoyman
9a9cab4365
Demonstrate bug in CSS parsing
...
Pinging @erikd. I think this problem was introduced in the new parser.
2014-09-30 13:31:44 +03:00
Michael Snoyman
def48d8a45
Version bumps for 1.4 release
2014-09-21 11:41:37 +03:00
Michael Snoyman
f86d181377
Merge branch 'master' into yesod-1.4
2014-09-21 00:07:11 +03:00
Michael Snoyman
60d1d5334b
Version bump
2014-09-20 23:44:08 +03:00
Erik de Castro Lopo
581a688cf5
yesod-test: Improve CSS selector parser.
...
* Tighten up what the parser will accept (especially wrt identifiers).
* Write the parser in a more idiomatic (for *parsec) style.
2014-09-17 10:24:57 +10:00
Michael Snoyman
598e570913
Remove deprecated packages
2014-09-07 17:41:09 +03:00
Michael Snoyman
c66ef04f17
Merge branch 'master' into yesod-1.4
...
Conflicts:
yesod-form/Yesod/Form/Functions.hs
2014-08-25 20:20:16 +03:00
Greg Weber
e74709433b
add yesodSpecApp
2014-08-11 16:23:41 -07:00
Greg Weber
00f8bcf59b
expose YesodExampleData
2014-08-11 15:58:47 -07:00
Michael Snoyman
b3959dead3
Version bumps
2014-08-03 12:36:58 +03:00
Maximilian Tagher
c06724402c
Fix typo in yesod-test; analize -> analyze
2014-07-26 12:48:56 -07:00
Michael Snoyman
e6eae8ee5a
Merge remote-tracking branch 'origin/master' into yesod-1.4
...
Conflicts:
yesod-routes/Yesod/Routes/Parse.hs
yesod-routes/test/Hierarchy.hs
yesod-routes/yesod-routes.cabal
2014-07-26 21:20:31 +03:00
Michael Snoyman
ef25c90e9b
Handle labels containing inputs #759
2014-06-17 08:22:38 +03:00
Michael Snoyman
b93a5d1993
Merge branch 'master' into yesod-1.4
...
Conflicts:
yesod-core/test/YesodCoreTest/CleanPath.hs
yesod-persistent/yesod-persistent.cabal
2014-06-09 11:22:30 +03:00
Michael Snoyman
1c78f86c8d
Version bumps
2014-06-09 10:44:03 +03:00
Michael Snoyman
6ac697f032
Merge branch 'wai3'
...
Conflicts:
yesod-core/yesod-core.cabal
yesod-form/yesod-form.cabal
yesod-persistent/yesod-persistent.cabal
2014-06-09 10:27:32 +03:00
Michael Snoyman
33c384bb4e
yesod-test: use HTTP/1.1
2014-06-08 08:14:38 +03:00
Michael Snoyman
3b53c047e7
Version bump
2014-05-29 18:52:39 +03:00
Erik de Castro Lopo
90d639d413
yesod-test : Add simple tests for htmlCount/html*Contain.
2014-05-29 08:55:14 +10:00
Erik de Castro Lopo
7318d47781
yesod-test : Add htmlNoneContain (logical inverse of htmlAnyContain).
2014-05-29 07:02:27 +10:00
Michael Snoyman
08f796fc58
Version bumps
2014-05-27 12:48:03 +03:00
Michael Snoyman
82de52e3d2
Various additional WAI 3.0 fixes
2014-05-22 21:04:28 +03:00
Michael Snoyman
60526676e5
Encode empty paths correctly #730
2014-05-06 08:25:44 +03:00
Michael Snoyman
8c183d9cda
Another fix for UTF8 paths
2014-04-27 11:21:43 +03:00
Michael Snoyman
bf3e8afefb
Fix some character encoding bugs
2014-04-23 16:05:00 +03:00
Michael Snoyman
d764464152
conduit 1.1
2014-03-27 16:38:52 +02:00
Michael Snoyman
aef99b44d8
Remove unneeded dep
2014-03-20 19:22:43 +02:00
Michael Snoyman
d5bf0f583d
Version bumps
2013-08-13 18:59:21 +03:00
Konstantine Rybnikov
928be6991e
Refactor a bit to make pattern matching happy and makeMultipart only work on multipart data.
2013-08-11 09:53:41 +03:00
Konstantine Rybnikov
59eb67e087
Add error-reporting when trying to add file or post-param after binary content is set.
2013-08-09 23:13:56 +03:00
Konstantine Rybnikov
441842ae12
Revert "Use GADTs for static guarantee you use right type of post data."
...
This reverts commit 3655af11d3 .
2013-08-09 22:48:09 +03:00
Konstantine Rybnikov
3655af11d3
Use GADTs for static guarantee you use right type of post data.
2013-07-30 11:11:34 +03:00
Konstantine Rybnikov
eb7ad4e480
Remove unused comment
2013-07-29 17:03:37 +03:00
Konstantine Rybnikov
a46a6fa399
Small spacing fix
2013-07-29 17:01:20 +03:00
Konstantine Rybnikov
fdb564abfe
Get post function back without overwriting content
2013-07-29 17:00:32 +03:00
Konstantine Rybnikov
8664c010da
Second attempt to write a good postBody and setRequestBody.
2013-07-29 16:57:13 +03:00
Konstantine Rybnikov
ee168c7829
Add postBody and setRequestBody functions to POST some data in a test.
2013-07-29 11:26:32 +03:00
Konstantine Rybnikov
a67732329d
Add yesodSpecWithSiteGenerator method.
...
This method "extracts" site from `IO site` action every time, instead
of getting it only once. Helpful for flushing database (to recreate
connections) etc.
2013-07-25 17:48:29 +03:00
Michael Snoyman
cb8aa986f0
Fix yesod-test
2013-04-03 21:40:13 +03:00
Michael Snoyman
7a90a794d8
Expanded yesod-test testsuite
2013-04-03 11:50:00 +03:00
Michael Snoyman
a1090d97d6
Expose YesodExample
2013-04-03 11:14:53 +03:00
Michael Snoyman
04d51bdb4c
Fix bug for complete URLs
2013-04-02 19:45:23 +03:00
Michael Snoyman
51eb7d4ba2
RequestBuilder overhaul
2013-04-02 19:41:52 +03:00
Michael Snoyman
9f97de6519
Export list cleanup
2013-04-02 17:39:32 +03:00
Michael Snoyman
db53252960
yesod-test can use type-safe URLs
2013-04-02 17:29:09 +03:00
Michael Snoyman
ad817275e8
Further yesod-test cleanup
2013-04-02 17:05:40 +03:00
Michael Snoyman
ba8706429a
Make yesod-test integrate better with hspec
2013-04-02 16:32:40 +03:00
Michael Snoyman
db57468832
Version bumps
2013-03-11 12:07:10 +02:00
Michael Snoyman
5b444c59eb
Version bumps
2013-03-04 10:37:37 +02:00
Shane Kilkelly
d06e4530f9
and export the new function from the module
2013-03-03 17:25:26 +00:00
Shane Kilkelly
bbb1a66bac
add a htmlAnyContain function
2013-03-03 17:16:10 +00:00
Michael Snoyman
aafecf5787
Parse query string parameters from URLs
2013-02-28 07:28:34 +02:00
Michael Snoyman
551b9d7c1e
Version bumps
2013-02-18 07:02:08 +02:00
Michael Snoyman
a1734e0e18
conduit 1.0 support
2013-02-13 11:45:50 +02:00
paul-rouse
c4310fb03b
Provide mechanism to add extra headers to a request in Yesod.Test
2013-01-29 19:43:07 +00:00
Michael Snoyman
d167842839
Version bumps, http-types 0.8
2013-01-29 10:33:14 +02:00
Michael Snoyman
6d3b7bb2eb
Version bump
2012-12-27 09:30:42 +02:00
Michael Snoyman
c9b6be07ef
Merge pull request #424 from wuzzeb/master
...
Add support for multiple cookies in yesod-test
2012-12-26 09:06:22 -08:00
Michael Snoyman
4d6aab02d4
Merge remote-tracking branch 'origin/master' into persistent11
2012-12-02 10:50:48 +02:00
Simon Hengel
ba27046aff
yesod-test: Remove redundant import
2012-11-29 11:00:19 +01:00
Simon Hengel
252871fea9
Fix deprecation warnings
2012-11-27 21:25:39 +01:00
Michael Snoyman
fb02d71d73
Persistent 1.1
2012-11-27 16:57:46 +02:00
Michael Snoyman
b15faa3cf8
hspec 1.4
2012-11-08 21:00:34 +02:00
Michael Snoyman
1c7e4c6f1a
Version bumps
2012-11-07 12:07:32 +02:00
Simon Hengel
ffcf7fbc5d
yesod-test: Do not use Test.Hspec.Runner
...
Test.Hspec.Runner will export functions for monadic specs in the future
(Hspec >= 1.4).
2012-10-16 14:45:02 +02:00
Michael Snoyman
fef3024d30
network 2.4
2012-09-19 09:02:58 +03:00
John Lenz
f8f1377d53
yesod-test: add support for multiple cookies
2012-09-17 00:52:45 -05:00
Greg Weber
840fa09e5b
complete backend independent yesod-test
2012-08-06 11:01:38 -07:00
Greg Weber
cbfaffe5a1
update yesod-test README
2012-08-05 13:48:50 -07:00
Greg Weber
fa291bf9fe
make yesod-test work with mongo
...
depends on resource-pool branch of persistent
2012-08-05 13:35:27 -07:00
Michael Snoyman
df5018a94c
hspec 1.3
2012-08-03 15:40:36 +03:00
Michael Snoyman
bc8e4b0588
Minor yesod-test fixes
2012-08-03 11:31:35 +03:00
Michael Snoyman
f80a810df9
yesod-test uses hspec 1.3
2012-08-03 08:41:45 +03:00
Michael Snoyman
699d76d13a
Merge branch 'beta'
...
Conflicts:
yesod-core/yesod-core.cabal
yesod-json/yesod-json.cabal
yesod-test/Yesod/Test.hs
yesod-test/test/main.hs
yesod-test/yesod-test.cabal
2012-07-11 08:48:09 +03:00
Michael Snoyman
0dbd724155
Remove hxt dep from yesod-test ( #382 )
2012-07-09 14:15:10 +03:00
Michael Snoyman
debbdc4aed
Removed HtmlParse
2012-07-09 13:40:24 +03:00
Michael Snoyman
f3a3408260
http-types 0.7
2012-07-06 16:24:24 +03:00
Michael Snoyman
ce6aabf82f
hspec 1.2 (fixes warnings)
2012-07-06 15:03:25 +03:00
Michael Snoyman
3ecbf43f5d
$newline
2012-07-01 20:59:37 +03:00
Michael Snoyman
a0c26206e3
yesod-test uses hspec 1.2 as well
2012-06-30 22:17:49 +03:00
Michael Snoyman
014732dac8
hspec 1.2
2012-06-26 10:56:50 +03:00
Michael Snoyman
ebc737a5cb
conduit 0.5
2012-06-22 15:28:14 +03:00
Michael Snoyman
61b5627e44
Version bumps
2012-05-14 12:33:44 +03:00
Michael Snoyman
f8c731534c
yesod-test: use html-conduit
2012-05-09 10:37:19 +03:00
Simon Hengel
c4863019d0
yesod-test: Adapt for hspec-1.1
2012-05-07 07:43:36 +02:00