package cz.moneta.test.dsl.ib.doidentifikace;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.harness.context.StoreAccessor;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.doidentifikace.ConfirmOtherPhoneNumberPage.BACK_TO_VERIFICATION_BUTTON;

@Wait(BACK_TO_VERIFICATION_BUTTON)
public interface ConfirmOtherPhoneNumberPage extends IbPageFlow<ConfirmOtherPhoneNumberPage>, StoreAccessor {
    String BACK_TO_VERIFICATION_BUTTON = "//button[@testid='back-to-sms-verification-button']";
    String CONFIRM_INVALID_PHONE_BUTTON = "//button[@testid='handle-invalid-phone-button']";

    @Click(BACK_TO_VERIFICATION_BUTTON)
    PhoneNumberPage returnToPhoneNumberPage();

    @Click(CONFIRM_INVALID_PHONE_BUTTON)
    SendCustomerToBankPage confirmInvalidPhoneNumber();
}