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
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.
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.
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.
If the user has not written "1-1-1-1" and click on "Enter" button, one minute timer should be shown. (It's stub)
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.
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).
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.
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