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

import cz.moneta.test.dsl.mobile.smartbanking.SbViewFlow;
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 static cz.moneta.test.dsl.mobile.smartbanking.activation.FirstActivationView.FIRST_ANDROID_TEXT;
import static cz.moneta.test.dsl.mobile.smartbanking.activation.FirstActivationView.FIRST_IOS_TEXT;

@AndroidWait(value = FIRST_ANDROID_TEXT, by = MobileLookup.ANDROID_TEXT)
@IosWait(FIRST_IOS_TEXT)
public interface FirstActivationView extends SbViewFlow<FirstActivationView>, ActivationElements, StoreAccessor {

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