package cz.moneta.test.dsl.ib.accountsandtransactions.paymentawaitingsignature;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.components.AccountsAndTransactionsSubmenu;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.TypeInto;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.accountsandtransactions.paymentawaitingsignature.PaymentsAwaitingSignatureAuthorizePage.PAYMENTS_FOR_SIGNATURE;

@Wait(PAYMENTS_FOR_SIGNATURE)
public interface PaymentsAwaitingSignatureAuthorizePage extends IbPageFlow<PaymentsAwaitingSignature>, AccountsAndTransactionsSubmenu, MainMenu {
    String SIGN_BUTTON = "//a[@id='sendToSign']";
    String SMS_CODE_IPUT = "//input[@id='SMSCode']";
    String SIGN_SMS_BUTTON = "//a[@id='sendBtn']";
    String PAYMENTS_FOR_SIGNATURE = "//img[@alt='Platby k podpisu']";
    String REJECT_BUTTON = "//img[@alt='Zamítnout vybrané']";

    @Click(SIGN_BUTTON)
    PaymentsAwaitingSignatureAuthorizePage clickSign();

    @Click(SIGN_SMS_BUTTON)
    PaymentsAwaitingSignatureConfirmationPage clickSignSms();

    @TypeInto(SMS_CODE_IPUT)
    PaymentsAwaitingSignatureAuthorizePage typeSmsCode(String smsCode);

    @Click(PAYMENTS_FOR_SIGNATURE)
    PaymentsAwaitingSignature clickPaymentsAwaitingSignature();

    @Click(REJECT_BUTTON)
    PaymentsAwaitingSignatureConfirmationPage clickRejectSelectedButton();
}
