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

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.loans.expressloan.IbYourExpressLoanInformationComponent;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.ACCOMMODATION_SELECT;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.BORN_PLACE;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.CHILD_COUNT;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.CITIZEN_SHIP_SELECT;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.CONTINUE_BUTTON;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.EDUCATION_SELECT;
import static cz.moneta.test.dsl.ib.loans.expressloan.dataCheckPart.IbExpressLoanAdditionalInformationPage.MARITAL_STATUS_SELECT;

@Wait(value = {EDUCATION_SELECT, ACCOMMODATION_SELECT, MARITAL_STATUS_SELECT, CHILD_COUNT, CITIZEN_SHIP_SELECT, BORN_PLACE, CONTINUE_BUTTON}, by = Lookup.ID)
public interface IbExpressLoanAdditionalInformationPage extends IbPageFlow<IbExpressLoanAdditionalInformationPage>, IbYourExpressLoanInformationComponent<IbExpressLoanAdditionalInformationPage> {
    String EDUCATION_SELECT = "education";
    String ACCOMMODATION_SELECT = "accommodation";
    String MARITAL_STATUS_SELECT = "maritalStatus";
    String CHILD_COUNT = "childCount";
    String CITIZEN_SHIP_SELECT = "citizenship";
    String BORN_PLACE = "bornPlace";

    String CONTINUE_BUTTON = "continueButton";

    @Wait(value = CONTINUE_BUTTON, by = Lookup.ID)
    @Click(value = CONTINUE_BUTTON, by = Lookup.ID)
    IbExpressLoanPermanentResidenceAndContactAddressPage continueToPermanentResidenceAndContactAddress();
}
