package cz.moneta.test.dsl.brokerportal.contractdetail;

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.brokerportal.contractdetail.ContractChecklistDocumentDateModal.DOCUMENT_DATE;

@Wait(DOCUMENT_DATE)
public interface ContractChecklistDocumentDateModal extends WebFlow<ContractChecklistDocumentDateModal>, StoreAccessor {
    String DOCUMENT_DATE = "//input[@id='documentDate']";
    String SAVE_BUTTON = "//button[text()='Uložit']";

    @TypeInto(DOCUMENT_DATE)
    ContractChecklistDocumentDateModal fillDocumentDate(String date);

    @Click(SAVE_BUTTON)
    ContractDetailPage clickSaveButton();
}