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

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.CheckElementPresent;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.settings.ib.ediponents.deactivate.RequestDeactivateDiponentPage.REQUEST_SET_DEACTIVATE_TITLE;
import static cz.moneta.test.dsl.ib.settings.ib.ediponents.deactivate.RequestDeactivateDiponentPage.SET_DEACTIVATE_DISPONENT_STEP_1;

@Wait({REQUEST_SET_DEACTIVATE_TITLE, SET_DEACTIVATE_DISPONENT_STEP_1})
public interface RequestDeactivateDiponentPage extends IbPageFlow<RequestDeactivateDiponentPage>, MainMenu, SettingsVerticalMenu {
    String REQUEST_SET_DEACTIVATE_TITLE = "//img[@alt='Deativace disponenta']";
    String SET_DEACTIVATE_DISPONENT_STEP_1 = "//img[@src='images_new/top_step1.gif']";
    String NEW_DISPONENT_STATUS = "//td[contains(text(),'Nový stav disponenta')]/following-sibling::td[contains(text(),'Neaktivní')]";
    String DEACTIVE_CONTINUE_BUTTON = "//img[@alt='Pokračovat']";

    @CheckElementPresent(NEW_DISPONENT_STATUS)
    @Click(value = DEACTIVE_CONTINUE_BUTTON)
    CheckDeactivateDisponentPage checkDeactiveStatusAndClickToContinue();
}