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

import cz.moneta.test.dsl.mobile.smartbanking.menu.SmartBankingMenu;
import cz.moneta.test.harness.support.mobile.MobileLookup;
import cz.moneta.test.harness.support.mobile.android.AndroidClick;
import cz.moneta.test.harness.support.mobile.android.AndroidWait;
import cz.moneta.test.harness.support.mobile.ios.IosClick;
import cz.moneta.test.harness.support.mobile.ios.IosWait;

import static cz.moneta.test.dsl.mobile.smartbanking.BalanceView.IOS_MORE_MENU_BUTTON;
import static cz.moneta.test.dsl.mobile.smartbanking.BalanceView.NAVIGATION_MENU;

@AndroidWait(value = NAVIGATION_MENU, by = MobileLookup.XPATH)
@IosWait(IOS_MORE_MENU_BUTTON)
public interface BalanceView extends SbViewFlow<BalanceView> {
    String NAVIGATION_MENU = "//android.widget.FrameLayout[contains(@resource-id, 'eu.inloop.gemoney.tst1:id/bottom_navigation_wrapper')]";
    String MORE_MENU_BUTTON = NAVIGATION_MENU + "//android.widget.TextView[@text = 'Více']";

    String IOS_MORE_MENU_BUTTON = "Více";

    @AndroidClick(value = MORE_MENU_BUTTON, by = MobileLookup.XPATH)
    @IosClick(IOS_MORE_MENU_BUTTON)
    SmartBankingMenu openMenu();
}
