On the "Create habit" template page, the User must:
Enter the name of the habit into the “Habit title” field.
1.1. The “Habit title” field should be mandatory.
1.2. The “Enter the name for the habit” placeholder is visible in the field.
1.3. The “Habit title” field should accept a minimum of 1 symbol (except for the white-space characters with no tracing letters/numbers/special symbols) and a maximum of 70 symbols.
1.4. "The field should not be empty" error message is shown if the field is left without typing any symbols or the entered value consists of white-space character(s) only, and the field is highlighted in red.
1.5. "The field should contain a maximum of 70 symbols" error message is shown if the entered value exceeds 70 symbols, and the field is highlighted in red.
1.6. The “Habit title” field should allow alphanumeric characters, white-space characters, and special characters.
1.7. The “Habit title” field should support copy-pasting of text.
Choose tag(s) in the “Pick tags for habit” block.
2.1. The “Pick tags for habit” block should be mandatory.
2.2. The User can choose up to 3 tags. If 3 tags are already chosen, the User can't select any additional tags.
2.3. The “Only 3 tags can be added” field label is shown below the “Pick tags for habit” text.
2.4. The chosen tags are highlighted in green. Clicking the highlighted tag deselects the chosen tag.
Enter the description of the habit into the “Habit description” field.
3.1. The “Habit description” field should be mandatory.
3.2. The “Describe the habit” placeholder is visible in the field.
3.3. The User should be able to add formatted text for habit description using the rich text editor. The rich text editor should provide options for:
font selection from a dropdown menu: Sans Serif (by default), Serif, and Monospace;
text formatting features: bold, italic, underline, strikethrough text;
text alignment features from a dropdown menu: left (by default), center, right, justified alignment;
font size features: small, normal (by default), large, huge;
font color selection button with a dropdown list of 35 colors;
text highlight color" button with a dropdown list of 35 colors.
3.4. The “Habit description” field should accept a minimum of 20 symbols.
3.5. "The field should contain a minimum of 20 symbols" error message is shown if the entered value is less than 20 symbols, and the field is highlighted in red.
3.6. The “Habit description” field should allow alphanumeric characters, white-space characters, and special characters.
3.7. The “Habit description” field should support copy-pasting of text.
On the "Create habit" template page, the User must: