Resolve "Improve UX and error messaging around test case title length"
What does this MR do and why?
This MR shows the correct type of createFlash
when the test case title is too long. Previously, an error message was generic for any type of error and it was too vague to identify an issue.
On top of this, I've refactored a unit test to use mocked Apollo client
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
- Open any project on Ultimate license
- Create a test case
- Enter a title that is longer than 255 characters
- Submit the form
- You should see a yellow error message stating that title is longer than 255 characters
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #352613 (closed)
Edited by Natalia Tepluhina