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

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

import static cz.moneta.test.dsl.hypos.pages.contract.processchecklist.ProcessChecklistPage.PAGE_TITLE;

@Wait(PAGE_TITLE)
public interface ProcessChecklistPage extends HyposPageFlow<ProcessChecklistPage>, Menu {
    String PAGE_TITLE = "//h1[text()='Checklist procesních kroků']";
    String PLEDGE_AGREEMENT_SUBMIT_BUTTON = "//form[@id='pledge-agreement-form']//input[@id='submit-btn']";

    @Click(value = PLEDGE_AGREEMENT_SUBMIT_BUTTON, andWait = @Wait(value = LOADER, until = Until.GONE, waitSecondsForElement = 60))
    DocumentsPage clickPledgeAgreementSubmit();
}