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

import cz.moneta.test.dsl.mobile.smartbanking.SbViewFlow;
import cz.moneta.test.harness.support.mobile.android.AndroidWait;
import cz.moneta.test.harness.support.mobile.MobileLookup;
import cz.moneta.test.harness.support.mobile.ios.IosWait;

import static cz.moneta.test.dsl.mobile.smartbanking.payment.SentPaymentView.IOS_RESULT;
import static cz.moneta.test.dsl.mobile.smartbanking.payment.SentPaymentView.RESULT_TITLE;

@AndroidWait(value = RESULT_TITLE, by = MobileLookup.XPATH)
@IosWait(IOS_RESULT)
public interface SentPaymentView extends SbViewFlow<SentPaymentView> {
    String RESULT_TITLE = "//android.widget.TextView[contains(@resource-id, 'id/txt_result_title') and @text='Platba byla odeslána']";

    String IOS_RESULT = "Platba byla odeslána";

}
