-
Notifications
You must be signed in to change notification settings - Fork 3
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
UIQM-740 Don't show warn/fail error toasts when there are no warns/fails. #766
Conversation
@@ -895,6 +895,30 @@ describe('Given QuickMarcEditor', () => { | |||
}); | |||
}); | |||
|
|||
describe('when saving form without validation warnings or errors', () => { |
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.
describe('when saving form without validation warnings or errors', () => { | |
describe('when saving form without validation warnings and errors', () => { |
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.
In English you can say "without X or Y" meaning "without X and without Y". A little weird, but that's how it is.
Interestingly, it works the same way as De Morgan's law in boolean logic, where "not (A or B) = (not A) and (not B)"
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.
Wow, I haven't thought about De Morgan since grad school!
await fireEvent.click(getByText('stripes-acq-components.FormFooter.save')); | ||
}); | ||
|
||
it('should show a toast notification about validation warning and error', async () => { |
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.
it('should show a toast notification about validation warning and error', async () => { | |
it('should not show a toast notification about validation warning and error', async () => { |
Quality Gate passedIssues Measures |
Description
Don't show warn/fail error toasts when there are no warns/fails.
Screenshots
chrome_MovqHmrwMJ.mp4
Issues
UIQM-740