package cz.moneta.test.dsl.mobile.smartbanking.activation;

import cz.moneta.test.dsl.mobile.smartbanking.SbViewFlow;
import cz.moneta.test.harness.support.mobile.MobileLookup;
import cz.moneta.test.harness.support.mobile.android.AndroidClick;
import cz.moneta.test.harness.support.mobile.android.AndroidWait;
import cz.moneta.test.harness.support.mobile.ios.IosClick;
import cz.moneta.test.harness.support.mobile.ios.IosWait;

import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationView.ALREADY_CLIENT_BUTTON_ID;
import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationView.IOS_ACTIVATION_BTN;
import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationView.IOS_NEW_ACCOUNT;
import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationView.NEW_ACCOUNT;

@AndroidWait(value = {ALREADY_CLIENT_BUTTON_ID, NEW_ACCOUNT}, waitSecondsForElement = 120)
@IosWait(value = {IOS_ACTIVATION_BTN, IOS_NEW_ACCOUNT}, by = MobileLookup.IOS_NAME)
public interface ActivationView extends SbViewFlow<ActivationView> {
    String ALREADY_CLIENT_BUTTON_ID = "btn_already_client";
    String NEW_ACCOUNT = "btn_become_client";

    String IOS_ACTIVATION_BTN = "Připojit se k mému účtu";
    String IOS_NEW_ACCOUNT = "Založit si nový účet";
    String USING_INTERNET_BANKING = "Připojit pomocí Internet Banky";

    @AndroidClick(ALREADY_CLIENT_BUTTON_ID)
    @IosClick(value = IOS_ACTIVATION_BTN, andWait = @IosWait(USING_INTERNET_BANKING))
    @IosClick(USING_INTERNET_BANKING)
    FirstActivationView activateSmartBanking();
}
