mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 03:26:31 +00:00
False failires fix
Signed-off-by: yevh-berdnyk <ie.berdnyk@gmail.com>
This commit is contained in:
parent
bb339dc39b
commit
4ddb9d582a
@ -17,7 +17,8 @@ RERUN_ERRORS = [
|
||||
"[Errno 104] Connection reset by peer",
|
||||
"Sauce could not start your job",
|
||||
"HTTP Error 303",
|
||||
"http.client.RemoteDisconnected: Remote end closed connection without response"
|
||||
"http.client.RemoteDisconnected: Remote end closed connection without response",
|
||||
"[Errno 110] Connection timed out"
|
||||
]
|
||||
|
||||
|
||||
|
@ -171,6 +171,9 @@ mailserver_address = "enode://531e252ec966b7e83f5538c19bf1cde7381cc7949026a6e499
|
||||
camera_access_error_text = "To grant the required camera permission, please go to your system settings " \
|
||||
"and make sure that Status > Camera is selected."
|
||||
|
||||
photos_access_error_text = "To grant the required photos permission, please go to your system settings " \
|
||||
"and make sure that Status > Photos is selected."
|
||||
|
||||
connection_not_secure_text = "Connection is not secure! " \
|
||||
"Do not sign transactions or send personal data on this site."
|
||||
connection_is_secure_text = "Connection is secure. Make sure you really trust this site " \
|
||||
|
@ -1,6 +1,7 @@
|
||||
import pytest
|
||||
|
||||
from tests import marks, group_chat_users, basic_user, bootnode_address, mailserver_address, camera_access_error_text
|
||||
from tests import marks, group_chat_users, basic_user, bootnode_address, mailserver_address, camera_access_error_text, \
|
||||
photos_access_error_text
|
||||
from tests.base_test_case import SingleDeviceTestCase, MultipleDeviceTestCase
|
||||
from views.sign_in_view import SignInView
|
||||
|
||||
@ -216,7 +217,7 @@ class TestProfileSingleDevice(SingleDeviceTestCase):
|
||||
profile.edit_picture_button.click()
|
||||
profile.select_from_gallery_button.click()
|
||||
profile.deny_button.click()
|
||||
profile.element_by_text(camera_access_error_text, element_type='text').wait_for_visibility_of_element(3)
|
||||
profile.element_by_text(photos_access_error_text, element_type='text').wait_for_visibility_of_element(3)
|
||||
profile.ok_button.click()
|
||||
profile.edit_picture_button.click()
|
||||
profile.select_from_gallery_button.click()
|
||||
|
@ -74,6 +74,7 @@ class TestWalletModal(SingleDeviceTestCase):
|
||||
start_new_chat.open_button.click()
|
||||
wallet_modal = start_new_chat.wallet_modal_button.click()
|
||||
transaction_history = wallet_modal.transaction_history_button.click()
|
||||
transaction_history.transactions_table.wait_for_visibility_of_element()
|
||||
if transaction_history.transactions_table.get_transactions_number() < 1:
|
||||
pytest.fail('Transactions history is not shown')
|
||||
|
||||
|
@ -29,10 +29,10 @@ class TestDApps(SingleDeviceTestCase):
|
||||
status_test_dapp.wait_for_d_aap_to_load()
|
||||
status_test_dapp.status_api_button.click()
|
||||
status_test_dapp.request_contact_code_button.click()
|
||||
status_test_dapp.do_not_allow_button.click()
|
||||
status_test_dapp.deny_button.click()
|
||||
if status_test_dapp.element_by_text(user['public_key']).is_element_displayed():
|
||||
pytest.fail('Public key is returned but access was not allowed')
|
||||
status_test_dapp.request_contact_code_button.click()
|
||||
status_test_dapp.ok_button.click()
|
||||
status_test_dapp.allow_button.click()
|
||||
if not status_test_dapp.element_by_text(user['public_key']).is_element_displayed():
|
||||
pytest.fail('Public key is not returned')
|
||||
|
@ -27,7 +27,7 @@ class TransactionTable(BaseElement):
|
||||
def __init__(self, driver):
|
||||
super(TransactionTable, self).__init__(driver)
|
||||
self.driver = driver
|
||||
self.locator = self.Locator.xpath_selector("//android.support.v4.view.ViewPager")
|
||||
self.locator = self.Locator.xpath_selector("//android.widget.ScrollView")
|
||||
|
||||
class TransactionElement(BaseButton):
|
||||
def __init__(self, driver):
|
||||
|
@ -63,11 +63,6 @@ class StatusAPIButton(BaseButton):
|
||||
super(StatusAPIButton.RequestContactCodeButton, self).__init__(driver)
|
||||
self.locator = self.Locator.text_part_selector('Request contact code')
|
||||
|
||||
class DoNotAllowButton(BaseButton):
|
||||
def __init__(self, driver):
|
||||
super(StatusAPIButton.DoNotAllowButton, self).__init__(driver)
|
||||
self.locator = self.Locator.text_selector("DON'T ALLOW")
|
||||
|
||||
|
||||
class StatusTestDAppView(BaseWebView):
|
||||
|
||||
@ -86,4 +81,3 @@ class StatusTestDAppView(BaseWebView):
|
||||
|
||||
self.status_api_button = StatusAPIButton(self.driver)
|
||||
self.request_contact_code_button = StatusAPIButton.RequestContactCodeButton(self.driver)
|
||||
self.do_not_allow_button = StatusAPIButton.DoNotAllowButton(self.driver)
|
||||
|
Loading…
x
Reference in New Issue
Block a user