ExtensionEngine / tailor

Content authoring platform
MIT License
31 stars 10 forks source link

Trim string entered in the course 'Name' field while cloning complete course structure #1029

Open dujes opened 1 year ago

dujes commented 1 year ago

I'm submitting a...

Context

Issue is only reproducible while cloning course structure. Issue is not reproducible when adding new course, or while renaming the existing course.

Precondition

At least one course should be created.

Steps to Reproduce

  1. Open the settings of a previously created course
  2. Expand Actions
  3. Click on the 'Clone" action --> 'Clone' modal will appear on the screen
  4. Enter {one char} (for example, one letter) + {space} in the 'Name' field (space can be added at the beginning or end)
  5. Observe

Expected Behavior

'The name field must be at least 2 characters' validation message should not disappear after entering one char + space in the 'Name' field.

Current Behavior

It's possible to clone course when {one char} + {space} is entered in the 'Name' field.

Screenshot 2022-11-24 at 10 34 34 Screenshot 2022-11-24 at 10 36 03

Screenshots

https://www.loom.com/share/99e3fc438d5d48359bb3d9f720942528