expect().toContain()
error message doesn't show expected string
#4659
Labels
expect().toContain()
error message doesn't show expected string
#4659
Describe the bug
When an
expect().toContain()
assertion failed we get a very generic error message:This makes it difficult to know what exactly went wrong.
Steps to Reproduce
Expected behavior
Print something like
Input string did not contain "baz"
. Not sure what to do for long strings though.Environment
The text was updated successfully, but these errors were encountered: