def test_update_dialog_photo_invalid_format_2(self):
     self.dialog_page.wait_for_loader()
     self.CURRENT_DIALOG_URL = self.driver.current_url
     self.dialog_page.open_menu()
     dialog_menu_page = DialogMenuPage(self.driver)
     dialog_menu_page.change_photo(os.getcwd() + "/tests/static/sabaton_high.mp4")
     err_msg = dialog_menu_page.get_message_of_error_notification()
     self.assertEquals(err_msg, u"Файл неверного типа.")
Example #2
0
 def test_set_dialog_photo_of_mad_titan(self):
     self.dialog_page.wait_for_loader()
     self.CURRENT_DIALOG_URL = self.driver.current_url
     self.dialog_page.open_menu()
     dialog_menu_page = DialogMenuPage(self.driver)
     dialog_menu_page.change_photo(os.getcwd() + "/tests/static/thanos.jpg")
     self.assertTrue(self.dialog_page.existence_change_photo_notification(),
                     "Failed to update photo of group dialog")
 def test_update_dialog_photo_png(self):
     self.dialog_page.wait_for_loader()
     self.CURRENT_DIALOG_URL = self.driver.current_url
     self.dialog_page.open_menu()
     dialog_menu_page = DialogMenuPage(self.driver)
     dialog_menu_page.change_photo(os.getcwd() + "/tests/static/sabaton_png.png")
     self.assertTrue(
         self.dialog_page.existence_change_photo_notification(),
         "Failed to update photo.png of group dialog")