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

import cz.moneta.test.dsl.forte.pages.appointments.AppointmentsMainPage;
import cz.moneta.test.dsl.forte.pages.brncontrols.BrnControlsMainPage;
import cz.moneta.test.dsl.forte.pages.contracts.ContractsMainPage;
import cz.moneta.test.dsl.forte.pages.portal.PortalMainPage;
import cz.moneta.test.dsl.forte.pages.branches.BranchesMainPage;
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.forte.pages.ForteHeaderMenu.HOME_PAGE_LINK;
import static cz.moneta.test.dsl.forte.pages.ForteHeaderMenu.NAVIGATION_DIV;

@Wait({NAVIGATION_DIV, HOME_PAGE_LINK})
public interface ForteHeaderMenu extends Builder {
    String HEADER_DIV = "//div[@class='header']";
    String NAVIGATION_DIV = HEADER_DIV + "//div[@class='navigation']";
    String HOME_PAGE_LINK = HEADER_DIV + "//a[@href='/portal/home/']";
    String APPOINTMENTS_LINK = NAVIGATION_DIV + "//a[@href='/appointments/']";
    String CONTRACTS_LINK = NAVIGATION_DIV + "//a[@href='/contracts/']";
    String BRANCHES_LINK = NAVIGATION_DIV + "//a[@href='/branches/']";
    String CONTROLS_OM_LINK = NAVIGATION_DIV + "//a[@href='/controlsom/']";

    @Click(HOME_PAGE_LINK)
    PortalMainPage clickPortal();

    @Click(APPOINTMENTS_LINK)
    AppointmentsMainPage clickAppointments();

    @Click(CONTRACTS_LINK)
    ContractsMainPage clickContracts();

    @Click(BRANCHES_LINK)
    BranchesMainPage clickBranches();

    @Click(CONTROLS_OM_LINK)
    BrnControlsMainPage clickControlsOM();

}