package cz.moneta.test.dsl.ib.welcome;

import cz.moneta.test.dsl.ib.IbPageFlow;
import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.ib.welcome.NonactiveDisponentWelcomePage.LOGOUT_BUTTON;
import static cz.moneta.test.dsl.ib.welcome.NonactiveDisponentWelcomePage.NONACTIVE_DISPONENT_HEADER_PAGE;

@Wait({NONACTIVE_DISPONENT_HEADER_PAGE, LOGOUT_BUTTON})
public interface NonactiveDisponentWelcomePage extends IbPageFlow<NonactiveDisponentWelcomePage> {
    String NONACTIVE_DISPONENT_HEADER_PAGE = "//p[@class='paragraphHeader']/b[text()='Neaktivní eDisponent']";
    String NONACTIVE_DISPONENT_INFORMATION_TEXT = "//p[@class='paragraphBasic' and contains(text(), 'Litujeme, ale tento eDisponent nebyl doposud aktivován. Z důvodu bezpečnosti je nutné, aby jeho aktivaci provedl ve své Internet Bance nejdříve majitel účtu.')]";
    String LOGOUT_BUTTON = "//img[@alt='Odhlášení']";

    @CheckElementPresent(NONACTIVE_DISPONENT_INFORMATION_TEXT)
    NonactiveDisponentWelcomePage checkInformationTextToNonactiveDisponentPage();
}
