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

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

import static cz.moneta.test.dsl.hypos.pages.contract.clients.ClientsListPage.CONSENT_BUTTON_INPUT;
import static cz.moneta.test.dsl.hypos.pages.contract.clients.ClientsListPage.PAGE_TITLE;

@Wait({PAGE_TITLE, CONSENT_BUTTON_INPUT})
public interface ClientsListPage extends HyposPageFlow<ClientsListPage>, Menu {
    String PAGE_TITLE = "//h1[text()='Klienti']";
    String CONSENT_BUTTON_INPUT = "//input[@value='Nastavit souhlas']";
    String CLIENT_DETAILS_LINK = "//a/b[contains(text(),'...DETAIL')]";

    @Click(CLIENT_DETAILS_LINK)
    ClientDetailsPage clickOpenClientDetails();

}
