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

import cz.moneta.test.harness.context.StoreAccessor;
import cz.moneta.test.harness.endpoints.smartbanka.SbEndpoint;
import cz.moneta.test.harness.support.mobile.MobileLookup;
import cz.moneta.test.harness.support.mobile.android.AndroidWait;
import cz.moneta.test.harness.support.mobile.ios.IosWait;
import cz.moneta.test.harness.support.mobile.share.MobileCustomAction;
import cz.moneta.test.harness.support.mobile.share.MobileFlow;

import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationElements.THIRD_ANDROID_TEXT;
import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationElements.THIRD_IOS_TEXT;

@AndroidWait(value = THIRD_ANDROID_TEXT, by = MobileLookup.ANDROID_TEXT)
@IosWait(THIRD_IOS_TEXT)
public interface ThirdActivationView extends MobileFlow<ThirdActivationView>, ActivationElements, StoreAccessor {

    @MobileCustomAction
    default LastActivationView swipeToLastActivationView(){
        SbEndpoint mobileEndpoint = getEndpoint(SbEndpoint.class);
        mobileEndpoint.swipeViewLeft();
        return null;
    }
}
