Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * Ожидание инфоэкрана с бонусами
- *
- * @param cardProcessing
- * @throws ScreenNotDisplayedException
- * @throws TestInterruptedException
- * @throws DetailsVerificationException
- */
- public void waitInfoScreen(String cardProcessing) throws ScreenNotDisplayedException, TestInterruptedException, DetailsVerificationException {
- String cardNumber = Lang.SBERBANK_SPASIBO_CARD_NUMBER.getText() + " " + card.getCardNumber();
- String cardStatus = Lang.SBERBANK_SPASIBO_CARD_STATUS.getText() + " " + card.getCardStatus();
- if (cardProcessing.equals("cft")) {
- String cardActiveBonuses = Lang.CFT_BONUS_INFO_BONUS_COUNT_AVAILABLE.getText() + " " + card.getAvailableCFTCountString();
- String cardBonuses = Lang.CFT_BONUS_INFO_BONUS_COUNT.getText() + " " + card.getCFTCountString();
- Screen screen = CashierModeScreen.CFT_INFO.cloneScreen()
- .add(ClassType.CS_CONFIGURATOR_TEXT_FIELD_LABEL, maskCardNumber(cardNumber))
- .add(ClassType.CS_CONFIGURATOR_TEXT_FIELD_LABEL, cardStatus)
- .add(ClassType.CS_CONFIGURATOR_TEXT_FIELD_LABEL, cardActiveBonuses)
- .add(ClassType.CS_CONFIGURATOR_TEXT_FIELD_LABEL, cardBonuses);
- cb.screenTk.waitForAndVerifyScreen(screen);
- } else if (cardProcessing.equals("sberbank")) {
- Screen screen = CashierModeScreen.SBERBANK_SPASIBO_INFO.cloneScreen()
- .add(ClassType.CS_CONFIGURATOR_TEXT_FIELD_LABEL, cardNumber)
- .add(ClassType.CS_CONFIGURATOR_TEXT_FIELD_LABEL, cardStatus);
- if (card.getPromoText() != null) {
- screen.add(ClassType.CS_CONFIGURATOR_FLOW_SETTINGS_VALUE_LABEL, card.getPromoText());
- }
- cb.screenTk.waitForAndVerifyScreen(screen);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement