def test_c4106(self): log.info("Cancel reply message in p2p chat") menu = Menu(self.driver) chat = ChatScreen(self.driver) chat_list = ChatListScreen(self.driver) menu.go_to(menu.wenums.CHATS, [menu.wenums.ALL]) chat_list.tap_user(self.FULL_NAME) chat.set_chat_msg(self.TEXT_MESSAGE) chat.tap_send_btn() chat.open_context_menu(self.TEXT_MESSAGE) chat.tap_context_reply() chat.tap_cancel_btn() log.info("Verify reply canceled") Verify.false(chat.is_reply_curtain_present(), "Replay curtain display")
def test_c4105(self): log.info("Reply for a message by voice message in p2p chat ") menu = Menu(self.driver) chat = ChatScreen(self.driver) chat_list = ChatListScreen(self.driver) menu.go_to(menu.wenums.CHATS, [menu.wenums.ALL]) chat_list.tap_user(self.FULL_NAME) chat.set_chat_msg(self.TEXT_MESSAGE) chat.tap_send_btn() chat.open_context_menu(self.TEXT_MESSAGE) chat.tap_context_reply() chat.record_voice_msg() chat.tap_record_send() log.info("Verify reply voice message displayed") Verify.true(chat.is_voice_reply(self.TEXT_MESSAGE), "No replied voice message")
def test_c1908(self): log.info("Send and reply message in group chat") menu = Menu(self.driver) chat = ChatScreen(self.driver) group_list = GroupListScreen(self.driver) menu.go_to(menu.wenums.GROUPS, [menu.wenums.ALL]) group_list.open_group_chat(self.GROUP_NAME) chat.set_chat_msg(self.TEXT_MESSAGE) chat.tap_send_btn() chat.open_context_menu(self.TEXT_MESSAGE) chat.tap_context_reply() chat.set_chat_msg(self.REPLY_MESSAGE) chat.tap_send_btn() log.info("Verify text message replied.") Verify.true( chat.is_replay_displayed(self.TEXT_MESSAGE, self.REPLY_MESSAGE), "No replied message in list")
def test_c1909(self): log.info("Send and reply message in p2p chat") menu = Menu(self.driver) chat = ChatScreen(self.driver) chat_list = ChatListScreen(self.driver) menu.go_to(menu.wenums.CHATS, [menu.wenums.ALL]) chat_list.tap_user(self.FULL_NAME) chat.set_chat_msg(self.TEXT_MESSAGE) chat.tap_send_btn() chat.open_context_menu(self.TEXT_MESSAGE) chat.tap_context_reply() chat.set_chat_msg(self.REPLY_MESSAGE) chat.tap_send_btn() log.info("Verify text message replied.") Verify.true( chat.is_replay_displayed(self.REPLY_MESSAGE, self.TEXT_MESSAGE), "No replied message in list")
def test_c21536(self): log.info("Send and reply message in channel") menu = Menu(self.driver) chat = ChatScreen(self.driver) channels = ChannelsListScreen(self.driver) menu.go_to(menu.wenums.CHANNELS, [menu.wenums.MY_CHANNELS]) channels.open_channel(self.CHANNEL_NAME) chat.set_chat_msg(self.TEXT_MESSAGE) chat.tap_send_btn() chat.open_context_menu(self.TEXT_MESSAGE) chat.tap_context_reply() chat.set_chat_msg(self.REPLY_MESSAGE) chat.tap_send_btn() log.info("Verify text message replied.") Verify.true( chat.is_replay_displayed(self.TEXT_MESSAGE, self.REPLY_MESSAGE), "No replied message in list")