Open
Description
I wasnt able to find a example which shows how it is possible to assert a expected http response body against the contents of a local file.
I imagine something like
scenario
visit url('/blog/')
name "Blog homepage"
assert main.peak_memory < 10M
expect body() == file(/my/local/file/with/expected.html)
IMO this would enhance readability of my test-scenario file, as I dont have huge blobs of html in them (and maybe might even allow me to generated the expected http response body using other tools)
Is this kind of operation supported?
Metadata
Assignees
Labels
No labels
Activity