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

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

import static cz.moneta.test.dsl.forte.pages.contracts.ContractsUniversalEnumInterface.HOME_TITLE;
import static cz.moneta.test.dsl.forte.pages.contracts.ContractsUniversalEnumInterface.TABLE_FIRST_ROW_TITLE;

/**
 * Interface for contracts checks
 * This just check if enum table is loaded
 * Don't use it with specific work on specific enum. You can extend this interface
 */
@Wait({HOME_TITLE, TABLE_FIRST_ROW_TITLE})
public interface ContractsUniversalEnumInterface extends FortePageFlow<ContractsUniversalEnumInterface>, ContractsMenu {
    String HOME_TITLE = "//title[text()='Evidence smluv | FORTE ']";
    String TABLE_FIRST_ROW_TITLE = CONTENT_DIV + "//table[@class='datagrid']//tr";
}