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

import cz.moneta.test.dsl.forte.pages.portal.LogsPage;
import cz.moneta.test.dsl.forte.pages.portal.PortalMainPage;
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.components.PortalMenu.CONTROL_MENU_UL;

@Wait(CONTROL_MENU_UL)
public interface PortalMenu extends RoleSelection<PortalMainPage>, Builder {
    String SIDE_BLOCK_DIV = "//div[@class='side-block']";
    String CONTROL_MENU_UL = SIDE_BLOCK_DIV + "//ul[@class='control menu']";
    String PARTITION_DIV = SIDE_BLOCK_DIV + "//div[@class='partition']";
    String LOGS_LINK = PARTITION_DIV + "//a[@href='/portal/log/']";

    @Click(LOGS_LINK)
    LogsPage clickLogs();
}
