package cz.moneta.test.dsl.ib.loans.expressloan.signLoan;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.loans.IbLoansPage;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.loans.expressloan.signLoan.IbSentExpressLoanPage.SUCCESS_TEXT;

@Wait(SUCCESS_TEXT)
public interface IbSentExpressLoanPage extends IbPageFlow<IbSentExpressLoanPage> {
    String SUCCESS_TEXT = "//td[text() = 'Gratulujeme!']";
    String BACK_TO_LOAN_OVERVIEW = "//a[text() = 'POKRAČOVAT NA PŘEHLED PŮJČEK']";

    @Wait(BACK_TO_LOAN_OVERVIEW)
    @Click(value = BACK_TO_LOAN_OVERVIEW, jsClick = true)
    IbLoansPage loansOverview();
}