-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display check failure message #1451
Conversation
2b32b04
to
69475bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code apart, that looks awesome to me.
69475bb
to
33b4197
Compare
Thanks for this @nelsonkopliku, Option 1 is a good option to proceed with. The only question I have is, is it possible to emphasis certain values in the failing message, like the words Failing and values (3 and 1)? |
@jagabomb I was waiting for this 😄 In regards to highlighting specific parts of the failure message I am afraid that would be trickier. Honestly, not an option for me at the moment 😅 |
After thinking of the Passing state, it would not make sense to emphasise the Failing/Passing wording. So let's just scrap my request there. I was hoping we could do some interpolation on the frontend to take the whatever is within quotations ('') and make those values bold. But if it too much heavy effort for now then lets proceed with the initial PR. 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nelsonkopliku Good!
I just proposed some changes in the factory itself.
We don't need to do such a default values handling, fishery
is pretty smart with those things.
Don't need a new review anyway
33b4197
to
82c2b73
Compare
82c2b73
to
0bbcf62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved as per comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey man nice!
LGTM
0bbcf62
to
ff1f4a2
Compare
Description
This PR adds rendering of a check expectation's
failure_message
returned by wanda on a failing check.Took the chance to tidy up a bit factories. More might come as we go.
@jagabomb I went for option 1 in figma just out of personal taste, however let me know if option two should be the way.
How was this tested?
Automated tests/storybook