package cz.moneta.test.dsl.ufo.operations.search;

import cz.moneta.test.dsl.ufo.operations.client.ClientRiskDetails;
import cz.moneta.test.dsl.ufo.operations.shared.topmenu.XXX701_SharedTopMenu;
import cz.moneta.test.harness.context.StoreAccessor;
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 cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.ufo.operations.search.SCH704_S001_ClientSearchApRisk.RECORDER_APP_BUTTON;
import static cz.moneta.test.dsl.ufo.operations.search.SCH704_S001_ClientSearchApRisk.SEARCH_BUTTON;

@Wait(value = {RECORDER_APP_BUTTON, SEARCH_BUTTON})
public interface SCH704_S001_ClientSearchApRisk extends StoreAccessor, WebFlow<SCH704_S001_ClientSearchApRisk>, XXX701_SharedTopMenu {

    String AP_INPUT = "SCH704_S001_E002";
    String BIRTHNUMBER_INPUT = "SCH704_S001_E001";
    String SEARCH_BUTTON = "SCH704_S001_B001";

    @TypeInto(AP_INPUT)
    SCH704_S001_ClientSearchApRisk fillAP(String ap);

    @TypeInto(BIRTHNUMBER_INPUT)
    SCH704_S001_ClientSearchApRisk fillBirthNumber(String birthNumber);

    @Click(SEARCH_BUTTON)
    ClientRiskDetails clickSearch();

}