package cz.moneta.test.dsl.forte.pages.brncontrols;

import cz.moneta.test.dsl.forte.FortePageFlow;
import cz.moneta.test.dsl.forte.components.BrnControlsMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.forte.pages.brncontrols.ControlsOnOmPage.HOME_TITLE;

@Wait(HOME_TITLE)
public interface ControlsOnOmPage extends FortePageFlow<ControlsOnOmPage>, BrnControlsMenu {
    String HOME_TITLE = "//title[text()='Kontroly OM | FORTE ']";

    String CURRENT_MONTH_BUTTON = "//div[@class='controlContainer']//input[@name='nowBtn']";
    String FIRST_CONTROL_DETAIL_BUTTON = "//form[@id='frm-grid-form']//span[@class='ge-icon fa icon icon-view ge-color-blue']";

    @Click(CURRENT_MONTH_BUTTON)
    ControlsOnOmPage clickCurrentQuarterFilterButton();

    @Click(FIRST_CONTROL_DETAIL_BUTTON)
    ControlDetail clickFirstControlDetail();

}