def test_set_empty_title(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)
     old_title = dialog_menu_page.get_title()
     dialog_menu_page.change_title("")
     new_title = dialog_menu_page.get_title()
     self.assertEqual(old_title, new_title)
 def test_set_chine_title(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_title(self.NEW_CHINE_TITLE)
     title = dialog_menu_page.get_title()
     self.assertEqual(self.NEW_CHINE_TITLE, title)
 def test_set_too_long_title(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_title(self.NEW_TOO_LONG_TITLE)
     new_title = dialog_menu_page.get_title()
     cut_title = self.NEW_TOO_LONG_TITLE[:self.MAX_TITLE_LENGTH]
     self.assertEqual(new_title, cut_title)