Skip to content

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
Screenshot_2022-04-25_at_15.16.37 Screenshot_2022-04-25_at_15.11.26

How to set up and validate locally

  1. Open any project on Ultimate license
  2. Create a test case
  3. Enter a title that is longer than 255 characters
  4. Submit the form
  5. 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.

Related to #352613 (closed)

Edited by Natalia Tepluhina

Merge request reports

Loading