package cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings;

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

import static cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings.VictoryPage.VICTORY_LOADER;
import static cz.moneta.test.dsl.monetaportal.savings.childbuildingsavings.VictoryPage.PAGE_HEADER;

@Wait(value = VICTORY_LOADER, until = Until.GONE, waitSecondsForElement = 60)
@Wait(PAGE_HEADER)
public interface VictoryPage extends ChildBuildingSavingsPageFlow<VictoryPage> {
    String PAGE_HEADER = "//h2[text()='Hotovo, můžete začít spořit']";
    String VICTORY_LOADER = "//div[contains(@class,'c-loader')]/following-sibling::h1[text() = 'Teď to musíme podepsat my,\nchvilku strpení prosím']";
}