Disable editprofile tests

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2020-01-28 15:55:28 +02:00
parent a64eb79065
commit 9fb513cea0
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
3 changed files with 22 additions and 11 deletions

View File

@ -15,6 +15,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5302) @marks.testrail_id(5302)
@marks.high @marks.high
@marks.skip
def test_set_profile_picture(self): def test_set_profile_picture(self):
sign_in_view = SignInView(self.driver) sign_in_view = SignInView(self.driver)
sign_in_view.create_user() sign_in_view.create_user()
@ -113,6 +114,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5454) @marks.testrail_id(5454)
@marks.critical @marks.critical
@marks.skip
def test_user_can_remove_profile_picture(self): def test_user_can_remove_profile_picture(self):
signin_view = SignInView(self.driver) signin_view = SignInView(self.driver)
home_view = signin_view.create_user() home_view = signin_view.create_user()
@ -829,6 +831,8 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
@marks.testrail_id(5680) @marks.testrail_id(5680)
@marks.high @marks.high
@marks.skip
# skip until edit userpic is enabled back
def test_pair_devices_sync_name_photo_public_group_chats(self): def test_pair_devices_sync_name_photo_public_group_chats(self):
self.create_drivers(2) self.create_drivers(2)
device_1, device_2 = SignInView(self.drivers[0]), SignInView(self.drivers[1]) device_1, device_2 = SignInView(self.drivers[0]), SignInView(self.drivers[1])

View File

@ -119,9 +119,11 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
default_username_1 = profile_1.default_username_text.text default_username_1 = profile_1.default_username_text.text
device_1_home = profile_1.get_back_to_home_view() device_1_home = profile_1.get_back_to_home_view()
profile_1 = device_1_home.profile_button.click() # Skip until edit-profile feature returned
profile_1.edit_profile_picture('sauce_logo.png')
profile_1.home_button.click() # profile_1 = device_1_home.profile_button.click()
# profile_1.edit_profile_picture('sauce_logo.png')
# profile_1.home_button.click()
device_2_public_key = device_2_home.get_public_key() device_2_public_key = device_2_home.get_public_key()
device_2_home.home_button.click() device_2_home.home_button.click()
@ -142,8 +144,11 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
self.errors.append("Default username '%s' is not shown in one-to-one chat" % default_username_1) self.errors.append("Default username '%s' is not shown in one-to-one chat" % default_username_1)
device_2_chat.chat_options.click() device_2_chat.chat_options.click()
device_2_chat.view_profile_button.click() device_2_chat.view_profile_button.click()
if not device_2_chat.contact_profile_picture.is_element_image_equals_template('sauce_logo.png'):
self.errors.append("Updated profile picture is not shown in one-to-one chat") # Skip until edit-profile feature returned
# if not device_2_chat.contact_profile_picture.is_element_image_equals_template('sauce_logo.png'):
# self.errors.append("Updated profile picture is not shown in one-to-one chat")
self.errors.verify_no_errors() self.errors.verify_no_errors()
@marks.testrail_id(5316) @marks.testrail_id(5316)
@ -159,8 +164,9 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
device_2_public_key = device_2_home.get_public_key() device_2_public_key = device_2_home.get_public_key()
profile_2 = device_2_home.get_profile_view() profile_2 = device_2_home.get_profile_view()
file_name = 'sauce_logo.png' # TODO: skip until edit image profile is enabled
profile_2.edit_profile_picture(file_name) # file_name = 'sauce_logo.png'
# profile_2.edit_profile_picture(file_name)
default_username_2 = profile_2.default_username_text.text default_username_2 = profile_2.default_username_text.text
profile_2.home_button.click() profile_2.home_button.click()
@ -187,8 +193,9 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
self.errors.append("Default username '%s' is not shown in one-to-one chat" % default_username_2) self.errors.append("Default username '%s' is not shown in one-to-one chat" % default_username_2)
device_1_chat.chat_options.click() device_1_chat.chat_options.click()
device_1_chat.view_profile_button.click() device_1_chat.view_profile_button.click()
if not device_1_chat.contact_profile_picture.is_element_image_equals_template(file_name): # TODO: skip until edit image profile is enabled
self.errors.append("Updated profile picture is not shown in one-to-one chat") # if not device_1_chat.contact_profile_picture.is_element_image_equals_template(file_name):
# self.errors.append("Updated profile picture is not shown in one-to-one chat")
self.errors.verify_no_errors() self.errors.verify_no_errors()
@marks.testrail_id(5373) @marks.testrail_id(5373)

View File

@ -149,8 +149,8 @@ class ProfileButton(TabButton):
return ProfileView(self.driver) return ProfileView(self.driver)
def click(self): def click(self):
from views.profile_view import DefaultUserNameText from views.profile_view import PrivacyAndSecurityButton
self.click_until_presence_of_element(DefaultUserNameText(self.driver)) self.click_until_presence_of_element(PrivacyAndSecurityButton(self.driver))
return self.navigate() return self.navigate()