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

import cz.moneta.test.dsl.forte.pages.branches.BranchesMainPage;
import cz.moneta.test.dsl.forte.pages.branches.MmbBranchesListPage;
import cz.moneta.test.dsl.forte.pages.branches.MmbFindBranchesPage;
import cz.moneta.test.harness.support.web.*;

import static cz.moneta.test.dsl.forte.components.BranchesMenu.CONTROL_MENU_UL;

@Wait(CONTROL_MENU_UL)
public interface BranchesMenu extends RoleSelection<BranchesMainPage>, Builder {
    String CONTROL_MENU_UL = LEFT_PANEL + "//ul[@class='control menu']";
    String MMB_BRANCHES_FIND_BRANCHES_LINK = CONTROL_MENU_UL + "//a[@href='/branches/findbranchesmmb/']";
    String MMB_BRANCHES_BRANCHES_LIST_LINK = CONTROL_MENU_UL + "//a[@href='/branches/branchmmb/']";

    @Wait(MMB_BRANCHES_FIND_BRANCHES_LINK)
    @Click(MMB_BRANCHES_FIND_BRANCHES_LINK)
    MmbFindBranchesPage clickMmbFindBranches();

    @Wait(MMB_BRANCHES_BRANCHES_LIST_LINK)
    @Click(MMB_BRANCHES_BRANCHES_LIST_LINK)
    MmbBranchesListPage clickMmbBranchesList();

}