package cz.moneta.test.dsl.ib.account.saving;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.accountsandtransactions.paymentawaitingsignature.PaymentsAwaitingSignature;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.dsl.ib.components.SavingMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.account.saving.TransferOfFoundsConfirmPage.*;

@Wait({PAGE_ID, IMG_NAME_OF_PAGE, THIRD_STEP_IN_PROGRESS_IMG, TABLE_TRANSFER_DONE_XPATH})
public interface TransferOfFoundsConfirmPage extends IbPageFlow<TransferOfFoundsConfirmPage>, MainMenu, SavingMenu {
    String PAGE_ID = "//div[@id='parentform']";
    String IMG_NAME_OF_PAGE = "//img[@alt='Převod prostředků']";
    String THIRD_STEP_IN_PROGRESS_IMG = PAGE_ID + "//img[@src='images_new/top_step3.gif']";
    String TABLE_TRANSFER_DONE_XPATH = PAGE_ID + "//table[@id='tdsoMoneyTransferDone_3_1']";
    String OVERVIEW_SAVING_ACCOUNTS_BUTTON = PAGE_ID + "//img[@alt='Přehled spořicích účtů']";
    String PAYMENTS_TO_SIGN_BUTTON = PAGE_ID + "//img[@alt='Platby k podpisu']";

    @Click(OVERVIEW_SAVING_ACCOUNTS_BUTTON)
    OverviewOfSavingsAccounts clickToOverviewSavingAccounts();

    @Click(PAYMENTS_TO_SIGN_BUTTON)
    PaymentsAwaitingSignature clickPaymentsToSingButton();
}
