Exemple #1
0
    def test_c25393(self):
        log.info(
            "Select one image and send it to the private chat with compression"
        )
        gallery = GalleryScreen(self.driver)
        chat = ChatScreen(self.driver)
        menu = Menu(self.driver)
        menu.go_to(menu.wenums.MYSELF)
        menu.go_to(menu.wenums.ACTIONS, [menu.wenums.MEDIA], menu.wenums.CHATS,
                   menu.wenums.GO_TO_GALLERY)
        gallery.tap_filter_photo()
        gallery.select_image()
        gallery.tap_send_btn()

        log.info("Verify image sent with compression")
        Verify.true(chat.is_compressed(), "Last image not compressed")
Exemple #2
0
    def test_c15392(self):
        log.info(
            "Select one image and send it to the private chat with compression"
        )
        gallery = GalleryScreen(self.driver)
        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)
        menu.go_to(menu.wenums.ACTIONS, [menu.wenums.MEDIA], menu.wenums.CHATS,
                   menu.wenums.GO_TO_GALLERY)
        gallery.tap_filter_photo()
        gallery.select_image()
        gallery.tap_send_btn()

        log.info("Verify image sent with compression")
        Verify.true(chat.is_compressed(), "Last image not compressed")