got rid of set_network_connection() usage in test due to permanent failing

Signed-off-by: Oleksii Lymarenko <alexey.lymarenko@gmail.com>
This commit is contained in:
Oleksii Lymarenko 2018-11-05 13:22:40 +02:00
parent 70388b9113
commit a8481ab3e1
No known key found for this signature in database
GPG Key ID: 2007E841ECE4A02C
1 changed files with 4 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
@marks.testrail_id(5326) @marks.testrail_id(5326)
@marks.critical @marks.critical
def test_offline_status(self): def test_offline_status(self):
self.create_drivers(1, offline_mode=True) self.create_drivers(1)
sign_in = SignInView(self.drivers[0]) sign_in = SignInView(self.drivers[0])
home_view = sign_in.create_user() home_view = sign_in.create_user()
@ -232,7 +232,9 @@ class TestMessagesOneToOneChatMultiple(MultipleDeviceTestCase):
wallet_view = home_view.wallet_button.click() wallet_view = home_view.wallet_button.click()
wallet_view.home_button.click() wallet_view.home_button.click()
sign_in.driver.set_network_connection(1) # airplane mode sign_in.toggle_airplane_mode()
sign_in.accept_agreements()
home_view = sign_in.sign_in()
chat = home_view.add_contact(transaction_senders['C']['public_key']) chat = home_view.add_contact(transaction_senders['C']['public_key'])
if chat.connection_status.text != 'Offline': if chat.connection_status.text != 'Offline':