Exemple #1
0
    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")
Exemple #2
0
    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")
Exemple #3
0
    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")