micro7duylong / ComeBack-Seed

project ComeBack which integrate with OnePos
1 stars 0 forks source link

Feature: Verify Phone Number with OTP #41

Open micro7duylong opened 1 year ago

micro7duylong commented 1 year ago

Feature: Verify Phone Number with OTP @authentication @signin @phonenumber @otp @visitor As a user of the ComeBack app, named Yasui. Yasui want to be able to enter the OTP sent to my phone number, So that Yasui can verify my phone number and complete him account setup or sign in to app.

an extend feature of Feature: Sign In with Phone Number Note: completing OTP Input is a crucial step in verifying the authenticity of a user's phone number. This feature allows users to complete the process of verifying their phone number by inputting the OTP (One Time Password) received via SMS or call. It ensures the security of the user's account and personal information by confirming that they are the legitimate owner of the phone number linked to their account. The feature should be easy to use, with clear instructions and a user-friendly interface to input the OTP.

micro7duylong commented 1 year ago

Example/ Concrete example

  1. The user is directed to a screen where they can enter the OTP to verify their phone number.

    1.1 OTP form is not showing up 1.2. The Visitor is prompted to enter their verification code via SMS.

  2. Visitor submits invalid OTP:

    2.1. the user is prompted to enter it again or to request a new OTP. 2.2 countdown 60s and Resend OTP Button enable 2.3. countdown 60s but Resend OTP Button enable

  3. Visitor submits valid OTP

    3.1 system redirects user to the home screen. 3.2 system is not redirects user to the home screen.

  4. Visitor requests to resend the OTP code

    4.0 the button resend the OTP not working 4.1 system resend new OTP code to Visitor via SMS. 4.2 system is not resend OTP to Visitor

̶4̶̶.̶ ̶V̶̶i̶̶s̶̶i̶̶t̶̶o̶̶r̶ ̶s̶̶u̶̶b̶̶m̶̶i̶̶t̶̶s̶ ̶v̶̶a̶̶l̶̶i̶̶d̶ ̶O̶̶T̶̶P̶ ̶o̶̶f̶ ̶r̶̶e̶̶q̶̶u̶̶e̶̶s̶̶t̶ ̶S̶̶i̶̶g̶̶n̶ ̶I̶̶n̶ ̶

4̶̶.̶̶1̶̶.̶ ̶s̶̶u̶̶b̶̶m̶̶i̶̶t̶̶s̶ ̶v̶̶a̶̶l̶̶i̶̶d̶ ̶O̶̶T̶̶P̶ ̶a̶̶n̶̶d̶ ̶t̶̶h̶̶e̶ ̶s̶̶y̶̶s̶̶t̶̶e̶̶m̶ ̶i̶̶s̶ ̶n̶̶o̶̶t̶ ̶n̶̶a̶̶v̶̶i̶̶g̶̶a̶̶t̶̶e̶ ̶t̶̶o̶ ̶h̶̶o̶̶m̶̶e̶ ̶p̶̶a̶̶g̶̶e̶ ̶a̶̶n̶̶d̶ ̶g̶̶r̶̶a̶̶n̶̶t̶ ̶t̶̶h̶̶e̶̶i̶̶r̶ ̶a̶̶c̶̶c̶̶e̶̶s̶̶s̶ ̶t̶̶o̶ ̶t̶̶h̶̶e̶ ̶f̶̶e̶̶a̶̶t̶̶u̶̶r̶̶e̶̶s̶ ̶o̶̶f̶ ̶t̶̶h̶̶e̶ ̶C̶̶o̶̶m̶̶e̶̶B̶̶a̶̶c̶̶k̶ ̶a̶̶p̶̶p̶̶.̶ ̶4̶̶.̶̶2̶̶.̶ ̶s̶̶u̶̶b̶̶m̶̶i̶̶t̶̶s̶ ̶v̶̶a̶̶l̶̶i̶̶d̶ ̶O̶̶T̶̶P̶ ̶b̶̶u̶̶t̶ ̶t̶̶h̶̶e̶ ̶s̶̶y̶̶s̶̶t̶̶e̶̶m̶ ̶n̶̶a̶̶v̶̶i̶̶g̶̶a̶̶t̶̶e̶ ̶t̶̶o̶ ̶h̶̶o̶̶m̶̶e̶ ̶p̶̶a̶̶g̶̶e̶ ̶a̶̶n̶̶d̶ ̶g̶̶r̶̶a̶̶n̶̶t̶ ̶t̶̶h̶̶e̶̶i̶̶r̶ ̶a̶̶c̶̶c̶̶e̶̶s̶̶s̶ ̶t̶̶o̶ ̶t̶̶h̶̶e̶ ̶f̶̶e̶̶a̶̶t̶̶u̶̶r̶̶e̶̶s̶ ̶o̶̶f̶ ̶t̶̶h̶̶e̶ ̶C̶̶o̶̶m̶̶e̶̶B̶̶a̶̶c̶̶k̶ ̶a̶̶p̶̶p̶̶.̶̶

5̶̶.̶ ̶V̶̶i̶̶s̶̶i̶̶t̶̶o̶̶r̶ ̶s̶̶u̶̶b̶̶m̶̶i̶̶t̶̶s̶ ̶v̶̶a̶̶l̶̶i̶̶d̶ ̶O̶̶T̶̶P̶ ̶o̶̶f̶ ̶r̶̶e̶̶q̶̶u̶̶e̶̶s̶̶t̶ ̶S̶̶i̶̶g̶̶n̶ ̶U̶̶p̶ ̶

5̶̶.̶̶1̶̶.̶ ̶S̶̶u̶̶b̶̶m̶̶i̶̶t̶̶s̶ ̶v̶̶a̶̶l̶̶i̶̶d̶ ̶O̶̶T̶̶P̶ ̶b̶̶u̶̶t̶ ̶t̶̶h̶̶e̶ ̶s̶̶y̶̶s̶̶t̶̶e̶̶m̶ ̶i̶̶s̶ ̶n̶̶o̶̶t̶ ̶n̶̶a̶̶v̶̶i̶̶g̶̶a̶̶t̶̶e̶ ̶t̶̶o̶ ̶c̶̶o̶̶m̶̶p̶̶l̶̶e̶̶t̶̶e̶ ̶t̶̶h̶̶e̶̶i̶̶r̶ ̶p̶̶r̶̶o̶̶f̶̶i̶̶l̶̶e̶ ̶s̶̶e̶̶t̶ ̶u̶̶p̶̶.̶ ̶ 5̶̶.̶̶2̶̶.̶ ̶S̶̶u̶̶b̶̶m̶̶i̶̶t̶̶s̶ ̶v̶̶a̶̶l̶̶i̶̶d̶ ̶O̶̶T̶̶P̶ ̶a̶̶n̶̶d̶ ̶t̶̶h̶̶e̶ ̶s̶̶y̶̶s̶̶t̶̶e̶̶m̶ ̶i̶̶s̶ ̶n̶̶a̶̶v̶̶i̶̶g̶̶a̶̶t̶̶e̶ ̶t̶̶o̶ ̶c̶̶o̶̶m̶̶p̶̶l̶̶e̶̶t̶̶e̶ ̶t̶̶h̶̶e̶̶i̶̶r̶ ̶p̶̶r̶̶o̶̶f̶̶i̶̶l̶̶e̶ ̶s̶̶e̶̶t̶ ̶u̶̶p̶̶.̶

̶O̶̶n̶̶c̶̶e̶ ̶t̶̶h̶̶e̶ ̶O̶̶T̶̶P̶ ̶i̶̶s̶ ̶e̶̶n̶̶t̶̶e̶̶r̶̶e̶̶d̶ ̶a̶̶n̶̶d̶ ̶v̶̶e̶̶r̶̶i̶̶f̶̶i̶̶e̶̶d̶ ̶t̶̶h̶̶e̶ ̶u̶̶s̶̶e̶̶r̶ ̶i̶̶s̶ ̶t̶̶a̶̶k̶̶e̶̶n̶ ̶t̶̶o̶ ̶a̶ ̶s̶̶c̶̶r̶̶e̶̶e̶̶n̶ ̶w̶̶h̶̶e̶̶r̶̶e̶ ̶t̶̶h̶̶e̶̶y̶ ̶c̶̶a̶̶n̶ ̶c̶̶o̶̶m̶̶p̶̶l̶̶e̶̶t̶̶e̶ ̶t̶̶h̶̶e̶̶i̶̶r̶ ̶p̶̶r̶̶o̶̶f̶̶i̶̶l̶̶e̶̶.̶

micro7duylong commented 1 year ago

technical specification

Scenario

Feature: Verify Phone Number with OTP

Background: Given Yasui is on the phone number verification screen And Yasui have entered his phone number

Scenario: 1. OTP Verification Success When Yasui enter the correct OTP code Then the system verifies his phone number And redirects Yasui to the home screen

Scenario: 2. OTP Verification Failure When Yasui enter an incorrect OTP code Then the system prompts Yasui to enter the correct code And does not verify his phone number And informs him that the verification was unsuccessful

Scenario: 3. Resend OTP Given Yasui have not received the OTP code When Yasui click on the "Resend OTP" button Then the system sends him a new OTP code And informs him that a new code has been send.