package cz.moneta.test.dsl.fortelight.components;

import cz.moneta.test.dsl.fortelight.pages.attendance.TimesheetPage;
import cz.moneta.test.harness.support.web.Builder;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.fortelight.components.AttendanceMenu.CONTROL_MENU_UL;

@Wait(CONTROL_MENU_UL)
public interface AttendanceMenu extends Builder {
    String SIDE_BLOCK_DIV = "//div[@class='side-block']";
    String CONTROL_MENU_UL = SIDE_BLOCK_DIV + "//ul[@class='control menu']";
    String FILL_ATTENDANCE_LINK = CONTROL_MENU_UL + "//a[@href='/attendance/timesheet/']";

    @Click(FILL_ATTENDANCE_LINK)
    TimesheetPage clickFillAttendance();
}
