package cz.moneta.test.dsl.ib.loan.creditcard;

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

import static cz.moneta.test.dsl.ib.loan.creditcard.CCProductConfiguratorPage.LOAN_AMOUNT_INPUT;

@Wait(value = LOAN_AMOUNT_INPUT)
public interface CCProductConfiguratorPage extends IbPageFlow<CCProductConfiguratorPage> {
    String LOAN_AMOUNT_INPUT = "//input[@id='helpers.creditCardAmount']";
    String CONTINUE_TO_SUMMARY_BUTTON = "//span[text()='Pokračovat']/parent::button[@data-test-id='continue-button']";

    @TypeInto(value = LOAN_AMOUNT_INPUT, clear = true)
    CCProductConfiguratorPage typeLoanAmount(String loanAmount);

    @Click(CONTINUE_TO_SUMMARY_BUTTON)
    CCSummaryPage continueToSummary();
}
