package cz.moneta.test.dsl.payment_engine.parts_of_menu.menu_clients;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.payment_engine.home.PaymentEngineHomePage.CLIENTS;

@Wait(CLIENTS)
public interface PaymentEngineClientsMenu extends WebFlow<PaymentEngineClientsMenu> {
    String AUTHORIZATIONS_FOR_DIRECT_DEBIT = "//a[text() = 'CZ Svolení k inkasu']";
    String AJAX_LOADING = "//div[text()='Načítám...']";

    @Click(value = AUTHORIZATIONS_FOR_DIRECT_DEBIT, andWait = @Wait(value = AJAX_LOADING, until = Until.GONE))
    PaymentEngineClientsAuthorizationsForDirectDebits clickOnAuthrizationsForDirectDebit();
}
