package cz.moneta.test.dsl.newib.mainpage;

import cz.moneta.test.dsl.newib.NewIbPageFlow;
import cz.moneta.test.dsl.newib.components.HorizontalMainMenu;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;

import static cz.moneta.test.dsl.newib.mainpage.ConfirmLogoutPage.*;

@Wait({LOGOUT_PAGE_TITLE, YES_LOGOUT_BUTTON, NO_LOGOUT_BUTTON})
public interface ConfirmLogoutPage extends NewIbPageFlow<ConfirmLogoutPage>, HorizontalMainMenu {
    String LOGOUT_PAGE_TITLE = "//h2[text()='Opravdu se chcete odhlásit?']";
    String YES_LOGOUT_BUTTON = "//button[@data-testid='confirm-logout']";
    String NO_LOGOUT_BUTTON = "//button[text()='Ne, zůstat']";

    @Click(YES_LOGOUT_BUTTON)
    SuccessfullyLogoutPage clickYesLogout();

    @Click(NO_LOGOUT_BUTTON)
    HorizontalMainMenu denyLogout();
}
