Skip to content

Commit

Permalink
Truncate httpprops in error message to show more chars (cypress-io#5150)
Browse files Browse the repository at this point in the history
* bump up truncation of formatting http props to 2000 chars instead of 100

let’s see what snapshots look like 🤞

* Add a test for something with a long prop (url) to have snapshot to not truncate.

* remove unnecessary module


Co-authored-by: Brian Mann <brian.mann86@gmail.com>
  • Loading branch information
2 people authored and grabartley committed Oct 6, 2019
1 parent b1f281e commit 7011f86
Show file tree
Hide file tree
Showing 4 changed files with 239 additions and 91 deletions.
2 changes: 1 addition & 1 deletion packages/driver/src/cypress/error_messages.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ divider = (num, char) ->
format = (data) ->
switch
when _.isString(data)
_.truncate(data, { length: 100 })
_.truncate(data, { length: 2000 })
when _.isObject(data)
JSON.stringify(data, null, 2)
else
Expand Down
Loading

0 comments on commit 7011f86

Please sign in to comment.