package cz.moneta.test.dsl.ib.settings.ib.ediponents;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.dsl.ib.components.MainMenu;
import cz.moneta.test.dsl.ib.settings.ib.SettingsVerticalMenu;
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.ib.settings.ib.ediponents.ConfirmSetDiponentPage.*;

@Waits({
        @Wait(CONFIRM_SET_DISPONENT_TITLE),
        @Wait(SET_ACTIVE_DISPONENT_STEP_3),
        @Wait(REQUEST_SENT)})
public interface ConfirmSetDiponentPage extends IbPageFlow<ConfirmSetDiponentPage>, MainMenu, SettingsVerticalMenu {
    String CONFIRM_SET_DISPONENT_TITLE = "//img[@alt='Nastavení disponenta']";
    String SET_ACTIVE_DISPONENT_STEP_3 = "//img[@src='images_new/top_step3.gif']";
    String OVERVIEW_EDISPONENTS_BUTTON = "//img[@src='images_new/prehled_disponentu_wb.gif']";
    String REQUEST_SENT = "//b[contains(text(),'Požadavek na nastavení disponenta byl úspěšně odeslán.')]";

    @Click(OVERVIEW_EDISPONENTS_BUTTON)
    DisponentsOverview clickOverviewDisponents();
}
