package cz.moneta.test.dsl.brokerportal.contract;

import cz.moneta.test.dsl.brokerportal.contract.fullapplication.FullApplicationPage;
import cz.moneta.test.dsl.brokerportal.contractdetail.ContractDetailPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.brokerportal.contract.VictoryScreenPage.TO_FULL_APPLICATION_BUTTON;

@Wait(value = TO_FULL_APPLICATION_BUTTON, waitSecondsForElement = 300)
public interface VictoryScreenPage extends WebFlow<VictoryScreenPage> {
    String TO_FULL_APPLICATION_BUTTON = "//button[@id='victoryScreenToFullApplication']";
    String TO_CONTRACT_DETAIL_BUTTON = "//button//small[text()='Zpět na detail obchodu']";

    @Click(TO_FULL_APPLICATION_BUTTON)
    FullApplicationPage clickToFullApplication();

    @Click(TO_CONTRACT_DETAIL_BUTTON)
    ContractDetailPage clickToContractDetail();
}