package cz.moneta.test.dsl.ib.settings.ib.contactInformation;

import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ib.settings.ib.contactInformation.IbSignedOfChangeContactDataPage.WAITING_HEADER_TEXT;

@Wait(WAITING_HEADER_TEXT)
public interface IbSignedOfChangeContactDataPage extends WebFlow<IbSignedOfChangeContactDataPage> {
    String WAITING_HEADER_TEXT = "//div[@id = 'KIN801_S004_L002' and contains(text(), 'Požadavek na změnu kontaktní adresy byl úspěšně zpracován a bude vyřízen během následujících 24 hodin')]";

    String OVERVIEW_CONTACT_INFORMATION = "KIN801_S004_P001";

    @Wait(value = OVERVIEW_CONTACT_INFORMATION, by = Lookup.ID)
    @Click(value = OVERVIEW_CONTACT_INFORMATION, by = Lookup.ID)
    IbContactInformationPage overviewContactInformation();
}
