package cz.moneta.test.dsl.ib.insurance.exhaustedAmount;

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

import static cz.moneta.test.dsl.ib.insurance.exhaustedAmount.ExhaustedAmnountInsuranceActivationPage.EXHAUSTED_AMOUNT_ACTIVATION_PAGE_NAME;
import static cz.moneta.test.dsl.ib.insurance.exhaustedAmount.ExhaustedAmnountInsuranceActivationPage.SECOND_STEP_IN_PROGRESS;

@Wait({EXHAUSTED_AMOUNT_ACTIVATION_PAGE_NAME, SECOND_STEP_IN_PROGRESS})
public interface ExhaustedAmnountInsuranceActivationPage extends IbPageFlow<ExhaustedAmnountInsuranceActivationPage>, MainMenu {
    String EXHAUSTED_AMOUNT_ACTIVATION_PAGE_NAME = "//div[contains(text(), 'Aktivace pojištění vyčerpané částky ke kreditní kartě')]";
    String SECOND_STEP_IN_PROGRESS = "//img[@src='images_new/top_step2_2.gif']";
    String OVERVIEW_INSURANCE_BUTTON = "//img[@alt='Přehled pojištění']";

    @Click(OVERVIEW_INSURANCE_BUTTON)
    InsurancePage clickOverviewInsuranceButton();
}