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

import cz.moneta.test.dsl.mobile.smartbanking.BalanceView;
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 cz.moneta.test.harness.support.mobile.share.MobileFlow;

import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivatedSmartBankingView.ANDROID_SUCCESS_ACTIVATION_TEXT;

@AndroidWait(value = ANDROID_SUCCESS_ACTIVATION_TEXT, by = MobileLookup.ANDROID_TEXT)
@IosWait(value = ActivatedSmartBankingView.IOS_SUCCESS_ACTIVATION_TEXT, by = MobileLookup.IOS_NAME)
public interface ActivatedSmartBankingView extends MobileFlow<ActivatedSmartBankingView> {
    String ANDROID_SUCCESS_ACTIVATION_TEXT = "Registrace proběhla úspěšně.";
    String ANDROID_RUN_SB_BUTTON = "btn_registration_complete_start_using";

    String IOS_SUCCESS_ACTIVATION_TEXT = "Aktivace úspěšná";
    String IOS_RUN_SB_BTN = "//XCUIElementTypeButton[@name='Spustit Smart Banku']";

    @AndroidWait(ANDROID_RUN_SB_BUTTON)
    @AndroidClick(ANDROID_RUN_SB_BUTTON)
    @IosWait(value = IOS_RUN_SB_BTN, by = MobileLookup.XPATH)
    @IosClick(value = IOS_RUN_SB_BTN, by = MobileLookup.XPATH)
    BalanceView startUsingSmartBaking();
}
