package cz.moneta.test.dsl.hypos.pages.contract;

import cz.moneta.test.dsl.hypos.components.ContractMenu;
import cz.moneta.test.dsl.hypos.components.Menu;
import cz.moneta.test.dsl.hypos.pages.HyposPageFlow;
import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.hypos.pages.contract.ContractHistoryPage.HISTORY_TABLE_TITLE;

@Wait(HISTORY_TABLE_TITLE)
public interface ContractHistoryPage extends HyposPageFlow<ContractHistoryPage>, Menu, ContractMenu {
    String PAGE_TITLE = "//h1[text()='Historie obchodu %s']";
    String HISTORY_TABLE_TITLE = "//h2[text()='Stavy a příznaky']";

    @CheckElementPresent(value = PAGE_TITLE, isStringDynamicXpath = true)
    ContractHistoryPage checkContractIdPresent(String contractId);
}
