package cz.moneta.test.dsl.brokerportal.userprofile;

import cz.moneta.test.harness.support.web.CheckElementPresent;
import cz.moneta.test.harness.support.web.Click;
import cz.moneta.test.harness.support.web.Wait;
import cz.moneta.test.harness.support.web.WebFlow;

import static cz.moneta.test.dsl.brokerportal.userprofile.UserProfilePage.PROFILE_BUTTON;

@Wait(PROFILE_BUTTON)
public interface UserProfilePage extends WebFlow<UserProfilePage> {
    String PROFILE_BUTTON = "//a[@href='#/profile']";
    String NOTIFICATIONS_BUTTON = "//a[@href='#/notifications']";
    String KOMPLETACE_SLOZKY_CHECKBOX = "//label[@id='stt_kompletace_slozky']";

    @Click(NOTIFICATIONS_BUTTON)
    UserProfilePage clickNotificationsButtons();

    @CheckElementPresent(KOMPLETACE_SLOZKY_CHECKBOX)
    UserProfilePage checkCheckboxKompletaceSlozky();
}