Skip to content

Commit

Permalink
Return boolean
Browse files Browse the repository at this point in the history
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
  • Loading branch information
churik committed Oct 8, 2019
1 parent 284f9bf commit e30a547
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/appium/tests/atomic/account_management/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_mobile_data_usage_settings(self):
self.verify_no_errors()


@marks.testrail_id(6229)
@marks.testrail_id(5454)
@marks.critical
def test_user_can_remove_profile_picture(self):
signin_view = SignInView(self.driver)
Expand Down Expand Up @@ -535,7 +535,7 @@ def test_switch_mailserver(self):
@marks.account
class TestProfileMultipleDevice(MultipleDeviceTestCase):

@marks.testrail_id(6835)
@marks.testrail_id(5762)
@marks.high
def test_pair_devices_sync_one_to_one_contacts(self):
self.create_drivers(2)
Expand Down
8 changes: 7 additions & 1 deletion test/appium/views/base_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ def image(self):
return Image.open(BytesIO(base64.b64decode(self.find_element().screenshot_as_base64)))

def attribute_value(self, value):
return self.find_element().get_attribute(value)
attribute_value = self.find_element().get_attribute(value)
if attribute_value == 'true' or 'True':
return True
elif attribute_value == 'false' or 'False':
return False
else:
return attribute_value

def is_element_image_equals_template(self, file_name: str = ''):
if file_name:
Expand Down

0 comments on commit e30a547

Please sign in to comment.