package cz.moneta.test.dsl.demo.web;

import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.demo.web.DemoTestPage.PAGE_LABEL_H1_XPATH;
import static cz.moneta.test.dsl.demo.web.DemoTestPage.LOADER_DIV;

@Wait(value = LOADER_DIV, waitSecondsForElement = 60, until = Until.GONE)
@Wait(value = PAGE_LABEL_H1_XPATH, waitSecondsForElement = 60)
public interface DemoTestPage extends WebFlow<DemoTestPage> {

    String LOADER_DIV = "//div[contains(@class, 'moneta-spinner__logo')]";
    String PAGE_LABEL_H1_XPATH = "//h1[text()='MONETA Auto']";

}
