mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-28 01:16:50 +00:00
Return boolean
Signed-off-by: Churikova Tetiana <churikova.tm@gmail.com>
This commit is contained in:
parent
284f9bffed
commit
e30a547039
@ -109,7 +109,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
|||||||
self.verify_no_errors()
|
self.verify_no_errors()
|
||||||
|
|
||||||
|
|
||||||
@marks.testrail_id(6229)
|
@marks.testrail_id(5454)
|
||||||
@marks.critical
|
@marks.critical
|
||||||
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)
|
||||||
@ -535,7 +535,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
|||||||
@marks.account
|
@marks.account
|
||||||
class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
class TestProfileMultipleDevice(MultipleDeviceTestCase):
|
||||||
|
|
||||||
@marks.testrail_id(6835)
|
@marks.testrail_id(5762)
|
||||||
@marks.high
|
@marks.high
|
||||||
def test_pair_devices_sync_one_to_one_contacts(self):
|
def test_pair_devices_sync_one_to_one_contacts(self):
|
||||||
self.create_drivers(2)
|
self.create_drivers(2)
|
||||||
|
@ -158,7 +158,13 @@ class BaseElement(object):
|
|||||||
return Image.open(BytesIO(base64.b64decode(self.find_element().screenshot_as_base64)))
|
return Image.open(BytesIO(base64.b64decode(self.find_element().screenshot_as_base64)))
|
||||||
|
|
||||||
def attribute_value(self, value):
|
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 = ''):
|
def is_element_image_equals_template(self, file_name: str = ''):
|
||||||
if file_name:
|
if file_name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user