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.SECOND_ANDROID_TEXT;
import static cz.moneta.test.dsl.mobile.smartbanking.activation.ActivationElements.SECOND_IOS_TEXT;

@AndroidWait(value = SECOND_ANDROID_TEXT, by = MobileLookup.ANDROID_TEXT)
@IosWait(SECOND_IOS_TEXT)
public interface SecondActivationView extends MobileFlow<SecondActivationView>, ActivationElements, StoreAccessor {

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