package cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings;

import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.Waits;

import static cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings.PersonalDetailPage.PAGE_HEADER;
import static cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings.PersonalDetailPage.LAND_REGISTRY_NUMBER_WITH_VALUE;

@Waits({@Wait(PAGE_HEADER), @Wait(LAND_REGISTRY_NUMBER_WITH_VALUE)})
public interface PersonalDetailPage extends ChildBuildingSavingsPageFlow<PersonalDetailPage> {
    String PAGE_HEADER = "//h2[text()='Zkontrolujte své údaje z občanského průkazu']";
    String LAND_REGISTRY_NUMBER_WITH_VALUE = "//input[@id='permanentAddress.landRegistryNumber' and string-length(@value) > 0]";
    String PEP_YES = "//*[@id='pep_value-true']";
    String PEP_NO = "//*[@id='pep_value-false']";

    @Click(PEP_YES)
    PersonalDetailPage clickPepYes();

    @Click(PEP_NO)
    PersonalDetailPage clickPepNo();

    @Click(CONTINUE_BUTTON)
    PersonalAddressPage clickContinue();
}
