Esempio n. 1
0
    def test_c25386(self):
        log.info("Send link message in myself chat")
        menu = Menu(self.driver)
        chat = ChatScreen(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        chat.set_chat_msg(self.PHONE_NUMBER_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.PHONE_NUMBER_MESSAGE)

        log.info("Verify phone number looks like link")
        Verify.true(chat.is_link(), "Message not a link")
        chat.close_context()

        chat.set_chat_msg(self.EMAIL_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.EMAIL_MESSAGE)

        log.info("Verify email looks like link")
        Verify.true(chat.is_link(), "Message not a link")
        chat.close_context()

        chat.set_chat_msg(self.URL_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.URL_MESSAGE)

        log.info("Verify url looks like link")
        Verify.true(chat.is_link(), "Message not a link")
Esempio n. 2
0
    def test_c530(self):
        log.info("Send link 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.FRIEND_NAME)
        chat.set_chat_msg(self.PHONE_NUMBER_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.PHONE_NUMBER_MESSAGE)

        log.info("Verify phone number looks like link")
        Verify.true(chat.is_link(), "Message not a link")
        chat.close_context()

        chat.set_chat_msg(self.EMAIL_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.EMAIL_MESSAGE)

        log.info("Verify email looks like link")
        Verify.true(chat.is_link(), "Message not a link")
        chat.close_context()

        chat.set_chat_msg(self.URL_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.URL_MESSAGE)

        log.info("Verify url looks like link")
        Verify.true(chat.is_link(), "Message not a link")
Esempio n. 3
0
    def test_c1794(self):
        log.info("Send link message in group chat")
        chat = ChatScreen(self.driver)
        group_list = GroupListScreen(self.driver)
        menu = Menu(self.driver)
        menu.go_to(menu.wenums.GROUPS, [menu.wenums.ALL])
        group_list.open_group_chat(self.GROUP_NAME)
        chat.set_chat_msg(self.PHONE_NUMBER_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.PHONE_NUMBER_MESSAGE)

        log.info("Verify phone number looks like link")
        Verify.true(chat.is_link(), "Message not a link")
        chat.close_context()

        chat.set_chat_msg(self.EMAIL_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.EMAIL_MESSAGE)

        log.info("Verify email looks like link")
        Verify.true(chat.is_link(), "Message not a link")
        chat.close_context()

        chat.set_chat_msg(self.URL_MESSAGE)
        chat.tap_send_btn()
        chat.open_context_menu(self.URL_MESSAGE)

        log.info("Verify url looks like link")
        Verify.true(chat.is_link(), "Message not a link")