package cz.moneta.test.dsl.fortelight;

import cz.moneta.test.dsl.fortelight.components.PageHeader;
import cz.moneta.test.harness.endpoints.WebEndpoint;
import cz.moneta.test.harness.support.web.Lookup;
import cz.moneta.test.harness.support.web.Until;
import cz.moneta.test.harness.support.web.WebFlow;

public interface ForteLightPageFlow<A extends WebFlow<A>> extends WebFlow<A>, PageHeader {
    String SPINNER = "spinner";

    default void beforePageLoad(WebEndpoint webEndpoint) {
        webEndpoint.waitForElementsToLoad(30, Lookup.ID, Until.GONE, SPINNER);
    }
}
