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

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

@Wait(value = AuthSmartBank.SMART_BANK_CONFIRMATION_LABEL, waitSecondsForElement = 60)
public interface AuthSmartBank extends NewIbPageFlow<cz.moneta.test.dsl.newib.authentification.AuthSmartBank> {

    String SMART_BANK_CONFIRMATION_LABEL = "//div[(contains(text(),'Potvrďte oznámení v aplikaci Smart Banka'))]";
    String SEND_SMS_BUTTON = "//button[@class='c-link c-link--small u-mr--medium' and text()='Potvrdit přes mobilní klíč']";

    @Wait(SEND_SMS_BUTTON)
    @Click(value = SEND_SMS_BUTTON, jsClick = true)
    AuthMobileKey clickSendSmsToAuthMobileKey();
}