package cz.moneta.test.dsl.auto.smartauto.setman;

import cz.moneta.test.dsl.auto.smartauto.SmartAutoFlow;
import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Click;

import static cz.moneta.test.dsl.auto.smartauto.shared.CommonElements.REACT_TABLE;
import static cz.moneta.test.dsl.auto.smartauto.shared.CommonElements.REACT_TABLE_LINK_ICON;

public interface DealersPage extends SmartAutoFlow<DealersPage> {

    String HEADING_DEALERS_LIST = "(//h1[contains(text(), 'Seznam Prodejců')])";

    @CheckElementPresent(HEADING_DEALERS_LIST)
    DealersPage checkHeadingDealers();

    @CheckElementPresent(REACT_TABLE)
    DealersPage checkTable();

    @Click(REACT_TABLE_LINK_ICON)
    DealersDetailPage clickFirstDealer();
}