Requirements- Create new page "Verifying OTP page"
- Add input field "otp" + button "Verify OTP"
- Add button "Resend new OTP"
Specifications
Design
- Header label = "OTP для входу у систему e-health" or "Додатковий код для входу у систему e-health"
- Input field "Edit_OTP"
- Button "Next" ("Далі")
- Link/Button "Resend_new_OTP" ("Ще раз надіслати OTP" or "Ще раз надіслати Додатковий код")
Logic on page
- On click button "Next" & "Edit_OTP" not empty
- Call WS Create Token with parameters = AUTHORIZE_OTP
- Get response, read attribute `response.urgent.next_step` and switching logic:
- REQUEST_APPS :
- Extract & save token from response
- Go to next page "Approvals"
- if WS return error - view message & break process
- On click button "Resend_new_OTP" not empty
- Call WS Create Token with parameters = RESEND_OTP
- Extract & save token from response
- Clear "Edit_OTP" field
- if WS return error - view message & break process
{"serverDuration": 264, "requestCorrelationId": "e73a0dd574b94062b19662aafba058e0"}