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

import cz.moneta.test.dsl.mobile.smartbanking.SbViewFlow;
import cz.moneta.test.dsl.mobile.smartbanking.landing.PinView;
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 static cz.moneta.test.dsl.mobile.smartbanking.payment.CertificationPaymentView.IOS_HEADER;
import static cz.moneta.test.dsl.mobile.smartbanking.payment.CertificationPaymentView.TOOLBAR_TITLE;

@AndroidWait(value = TOOLBAR_TITLE, by = MobileLookup.XPATH)
@IosWait(value = IOS_HEADER, by = MobileLookup.IOS_NAME)
public interface CertificationPaymentView extends SbViewFlow<CertificationPaymentView>, PinView<CertificationPaymentView> {
    String TOOLBAR_TITLE = "//android.widget.TextView[contains(@resource-id, 'id/toolbar_title') and @text='Autorizace']";
    String IOS_HEADER = "Autorizace";

    SentPaymentView onSentPaymentView();
}
