Uber-coffee / Mobile-app

0 stars 3 forks source link

[2pt] "Resend code" button on screen for writing SMS code without backend #26

Open Niyaz-ik opened 4 years ago

Niyaz-ik commented 4 years ago

Past versions https://github.com/Uber-coffee/Mobile-app/issues/24 https://github.com/Uber-coffee/Mobile-app/issues/36

Tasks:

Description AS A user I WANT TO have an ability to resend SMS code SO THAT I can write new code from SMS if I entered the code incorrectly before.

Acceptance criteria

  1. The authorization screen should have two buttons: "Enter" and "Resend code" - "Enter" button should transfer the user to the "List of shops" screen, and "Resend code" button should clear the SMS code input field and clear all error messages and timer.
  2. If the user has not written a code consisting of 4 numbers, then the "ENTER" button and "RESEND CODE" button should be slightly transparent and user can't click on it.
  3. If the user has not written "1-1-1-1" and click on "Enter" button, error alert "You entered a wrong code try again in 1 minute" should be shown.
  4. If the user has not written "1-1-1-1" and click on "Enter" button, one minute timer should be shown. (It's stub)
  5. The timer must have these properties: a. When it appears it has a value of 1:00, which is equal to 1 minute. b. Every second, this number should decrease. (1:00, 0:59, 0:58 etc.) As a result, it should reach zero. c. When the timer runs out the "RESEND CODE" button should be not transparent and user can click on it.
  6. If the user has written "1-1-1-1" and click on "Enter" button, he should go to the "List of shops" screen (It's stub).
  7. When the user enters characters in the field, alerts "Correct pin code" and "Incorrect pin code" should not be displayed as it was in previous versions.

image

iSpirydonava commented 4 years ago

Don't have any objectives or comments