Flaky tests plugin and another capability

Signed-off-by: Serhy <sergii@status.im>
This commit is contained in:
Serhy 2020-05-20 11:47:53 +03:00
parent 3ac5a0ee1a
commit 449cfd05b5
No known key found for this signature in database
GPG Key ID: 5D7C4B9E2B6F500B
7 changed files with 10 additions and 2 deletions

View File

@ -14,6 +14,7 @@ eth-utils==1.0.3
ethereum==2.3.0
execnet==1.4.1
future==0.16.0
flaky
idna==2.5
kiwisolver==1.0.1
lxml==4.3.1

View File

@ -9,7 +9,7 @@ RERUN_ERRORS = [
'Unexpected server error',
'504 Gateway Time-out',
'Internal Server Error',
'Invalid message: ERROR Internal Server Error',
'failed to start the browser or device',
'ERROR The test with session id'
"Message: 'CreateMultiaccountButton' is not found on screen",
"503 Service Unavailable",

View File

@ -6,7 +6,6 @@ from tests import marks, bootnode_address, mailserver_address, camera_access_err
from tests.base_test_case import SingleDeviceTestCase, MultipleDeviceTestCase
from tests.users import transaction_senders, basic_user, ens_user
from views.sign_in_view import SignInView
from tests import pytest_config_global
@marks.all
@ -538,6 +537,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
@marks.testrail_id(5766)
@marks.medium
@marks.flaky
def test_use_pinned_mailserver(self):
sign_in_view = SignInView(self.driver)
home_view = sign_in_view.create_user()
@ -664,6 +664,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
@marks.testrail_id(5436)
@marks.medium
@marks.flaky
def test_add_switch_delete_custom_mailserver(self):
self.create_drivers(2)
sign_in_1, sign_in_2 = SignInView(self.drivers[0]), SignInView(self.drivers[1])
@ -743,6 +744,7 @@ class TestProfileMultipleDevice(MultipleDeviceTestCase):
@marks.testrail_id(5767)
@marks.medium
@marks.flaky
def test_can_not_connect_to_mailserver(self):
self.create_drivers(2)
sign_in_1, sign_in_2 = SignInView(self.drivers[0]), SignInView(self.drivers[1])

View File

@ -66,6 +66,7 @@ class AbstractTestCase:
desired_caps['commandTimeout'] = 600
desired_caps['idleTimeout'] = 1000
desired_caps['unicodeKeyboard'] = True
desired_caps['resetKeyboard'] = True
desired_caps['automationName'] = 'UiAutomator2'
desired_caps['setWebContentDebuggingEnabled'] = True
desired_caps['ignoreUnimportantViews'] = False
@ -94,6 +95,7 @@ class AbstractTestCase:
desired_caps['newCommandTimeout'] = 600
desired_caps['fullReset'] = False
desired_caps['unicodeKeyboard'] = True
desired_caps['resetKeyboard'] = True
desired_caps['automationName'] = 'UiAutomator2'
desired_caps['setWebContentDebuggingEnabled'] = True
return desired_caps

View File

@ -9,6 +9,7 @@ low = pytest.mark.low
account = pytest.mark.account
upgrade = pytest.mark.upgrade
flaky = pytest.mark.flaky
api = pytest.mark.api
all = pytest.mark.all
chat = pytest.mark.chat

View File

@ -641,6 +641,7 @@ class BaseView(object):
return user_data
def share_via_messenger(self):
self.element_by_text_part("Direct share").wait_for_element()
self.element_by_text('Messages').click()
self.element_by_text('New message').click()
self.send_as_keyevent('+0100100101')

View File

@ -674,6 +674,7 @@ class ProfileView(BaseView):
self.plus_button.click_until_presence_of_element(self.ropsten_chain_button)
self.custom_network_url.send_keys('https://ropsten.infura.io/v3/f315575765b14720b32382a61a89341a')
self.specify_name_input.send_keys('custom_ropsten')
self.ropsten_chain_button.scroll_to_element()
self.ropsten_chain_button.click()
self.ropsten_chain_button.click()
self.save_button.click()