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

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

import static cz.moneta.test.dsl.ib.doidentifikace.SendCustomerToBankPage.MAKE_APPOINTMENT_BUTTON;

@Wait(MAKE_APPOINTMENT_BUTTON)
public interface SendCustomerToBankPage extends IbPageFlow<SendCustomerToBankPage>, StoreAccessor {
    String MAKE_APPOINTMENT_BUTTON = "//a[@testid='make-appointment-button']";
    String CLOSE_ICON = "//div[@testid='close-icon']";

    @CheckElementPresent(MAKE_APPOINTMENT_BUTTON)
    SendCustomerToBankPage checkMakeAppointmentButton();

    @Click(value = CLOSE_ICON)
    WelcomePage closePage();
}