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

import cz.moneta.test.harness.context.StoreAccessor;
import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.brokerportal.contractdetail.ContractAssignToBankModal.ASSING_TO_BANK_BUTTON;

@Wait(ASSING_TO_BANK_BUTTON)
public interface ContractAssignToBankModal extends WebFlow<ContractAssignToBankModal>, StoreAccessor {
    String ASSING_TO_BANK_BUTTON = "//form//button[text()='Předat obchod']";
    String MISSING_DOCUMENT_ERROR = "//form//small[text()=' - Nedodáno']";

    @CheckElementPresent(MISSING_DOCUMENT_ERROR)
    ContractAssignToBankModal checkMissingDocument();
}