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

import cz.moneta.test.dsl.ib.IbPageFlow;
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.TypeInto;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.account.saving.CancelSavingAccountCheckPage.NAME_PAGE_XPATH;
import static cz.moneta.test.dsl.ib.account.saving.CancelSavingAccountCheckPage.SECOND_STEP_IN_PROGRESS_IMG;

@Wait({NAME_PAGE_XPATH, SECOND_STEP_IN_PROGRESS_IMG})
public interface CancelSavingAccountCheckPage extends IbPageFlow<CancelSavingAccountEnteringPage>, MainMenu, SavingMenu {
    String NAME_PAGE_XPATH = "//img[@alt='Zrušení spořicícho účtu']";
    String SECOND_STEP_IN_PROGRESS_IMG = "//img[@src='images_new/top_step2.gif']";
    String MOBILE_KEY_INPUT = "//input[@id='SMSCode']";
    String SIGN_BUTTON = "//a[@id='sendBtn']";

    @TypeInto(MOBILE_KEY_INPUT)
    CancelSavingAccountCheckPage fillInMobileKey(String mobileKey);

    @Click(SIGN_BUTTON)
    CancelSavingAccountConfirmPage clickSignButton();
}