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

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

import static cz.moneta.test.dsl.forte.pages.branches.MmbBranchDetailPage.PAGE_TITLE;

@Wait(PAGE_TITLE)
public interface MmbBranchDetailPage extends FortePageFlow<MmbBranchDetailPage>, BranchesMenu {
    String PAGE_TITLE = CONTENT_DIV + "//h3[starts-with(text(), 'Detail pobočky')]";
    String SHOW_ON_MAP_LINK = CONTENT_DIV + "//a[@title='Zobrazit na mapě']//span[@class='iconbox']";
    String PHOTO_ADMINISTRATION_LINK = CONTENT_DIV + "//a[@title='Správa foto/dokumentů']//span[@class='iconbox']";

    @Click(SHOW_ON_MAP_LINK)
    MmbBranchDetailMapPage clickShowOnMap();

    @Click(PHOTO_ADMINISTRATION_LINK)
    DocumentsListPage clickPhotoAdministration();
}