package cz.moneta.test.dsl.ib.cards.application.contract;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.cards.CardsVerticalMenu;
import cz.moneta.test.dsl.ib.cards.application.ApplicationsOverviewPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.cards.application.contract.SignatureConfirmationPage.PAGE_NAME;

@Wait(PAGE_NAME)
public interface SignatureConfirmationPage extends IbPageFlow<SignatureConfirmationPage>, CardsVerticalMenu {
    String PAGE_NAME = "//*[@id=\"agreementSign_2_9\"]/tbody/tr/td/table[2]/tbody/tr/td[contains(text(),' Děkujeme za podpis smlouvy!')]";

    String APPLICATION_REVIEW = "//*[@id=\"agreementSign_2_9\"]/tbody/tr/td/table[3]/tbody/tr/td/a/img";

    @Click(APPLICATION_REVIEW)
    ApplicationsOverviewPage continueToApplicationOverviewPage();
}
