nromanen / pratical_testing_2022

0 stars 2 forks source link

Change request to #1001 . Add new custom habit (“Duration” indicator, “Difficulty” rating, “Picture” for the habit block) #231

Open khrystenko-qa opened 1 year ago

khrystenko-qa commented 1 year ago

On the "Create habit" template page, the User can:

  1. Choose the duration of the habit in the “Duration” indicator.

1.1. The duration indicator should be presented as a slider, representing the number of days from 7 (by default) to 56 days. 1.2. The duration indicator should have a step of 1 day. 1.3. The User should be able to modify the habit duration by either clicking on the slider or dragging the slider with the mouse/finger (for mobile devices). 1.4. The information message "This duration of habit formation is recommended. You can change it at will" should be displayed under the slider. 1.5. When the user changes the number of days by moving the slider, the updated value should be immediately visible on the slider itself.

  1. Choose the difficulty of the habit in the “Difficulty” block.

2.1. The “Difficulty” block should be optional. 2.2. The “Difficulty” block is a scale consisting of 3 stars to understand the difficulty. 2.3. The “Easy“ tooltip is shown after hovering on the first star out of 3. 2.4. The “Medium“ tooltip is shown after hovering on the second star out of 3. 2.5. The “Hard“ tooltip is shown after hovering on the third star out of 3. 2.6. One-star difficulty is chosen by default. 2.7. When the User selects the required difficulty - the chosen stars are filled with green color.

  1. Choose a picture for the habit in the “Picture (optional)” block.

3.1. The “Picture (optional)” block should be optional. 3.2. The "Upload PNG or JPG only. File size should be less than 10MB" information message should be displayed below the “Picture (optional)” text. 3.3. The User should have the option to select a picture from a default set of three different pictures. The selected picture from a default set is highlighted in green. 3.4. Alternatively, the User should be able to upload his/her picture that responds to the conditions: only PNG and JPG formats should be accepted; the file size of the uploaded picture should be less than 10 MB. 3.5. If the User tries to upload a picture exceeding 10 MB and/or of a different format (not PNG or JPG):

  • the picture/file should not be uploaded;
  • the “Image isn't uploaded” error message is shown;
  • the “Upload PNG or JPG only. File size should be less than 10MB” information message displayed below the “Picture (optional)” text is highlighted in red.

3.6. The User can upload his/her image by:

  • dropping it onto the form;
  • clicking the “browse” button.