From 8e9f0143ad0e4f32e16b79479aafc40a0316e303 Mon Sep 17 00:00:00 2001 From: Lukasz Fryc Date: Wed, 17 Oct 2018 10:55:33 +0200 Subject: [PATCH] Remove TestFairy from E2E tests Signed-off-by: yevh-berdnyk --- test/appium/tests/__init__.py | 5 ----- .../atomic/account_management/test_create_account.py | 4 +--- test/appium/views/base_view.py | 9 +-------- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/test/appium/tests/__init__.py b/test/appium/tests/__init__.py index a1f39e5b0a..a8f15b075c 100644 --- a/test/appium/tests/__init__.py +++ b/test/appium/tests/__init__.py @@ -43,8 +43,3 @@ 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 " \ "before signing transactions or entering personal data." -test_fairy_warning_text = "You are using an app installed from a nightly build. If you're connected to WiFi, " \ - "your interactions with the app will be saved as video and logs. " \ - "These recordings do not save your passwords. They are used by our development team " \ - "to investigate possible issues and only occur if the app is install from a nightly build. " \ - "Nothing is recorded if the app is installed from PlayStore or TestFlight." diff --git a/test/appium/tests/atomic/account_management/test_create_account.py b/test/appium/tests/atomic/account_management/test_create_account.py index 78727a5e70..95d96fe4e0 100644 --- a/test/appium/tests/atomic/account_management/test_create_account.py +++ b/test/appium/tests/atomic/account_management/test_create_account.py @@ -1,5 +1,5 @@ import pytest -from tests import marks, common_password, get_current_time, test_fairy_warning_text, unique_password +from tests import marks, common_password, get_current_time, unique_password from tests.base_test_case import SingleDeviceTestCase from views.sign_in_view import SignInView @@ -12,8 +12,6 @@ class TestCreateAccount(SingleDeviceTestCase): @marks.critical def test_create_account(self): sign_in = SignInView(self.driver, skip_popups=False) - if not sign_in.element_by_text_part(test_fairy_warning_text).is_element_displayed(): - self.errors.append('TestFairy warning is not shown') sign_in.accept_agreements() if not sign_in.i_have_account_button.is_element_displayed(): self.errors.append("'I have an account' button is not displayed") diff --git a/test/appium/views/base_view.py b/test/appium/views/base_view.py index d9c34cada8..86dc4a5870 100644 --- a/test/appium/views/base_view.py +++ b/test/appium/views/base_view.py @@ -5,7 +5,7 @@ import base64 import pytest import re import zbarlight -from tests import common_password, test_fairy_warning_text +from tests import common_password from eth_keys import datatypes from selenium.common.exceptions import NoSuchElementException, TimeoutException, StaleElementReferenceException from PIL import Image @@ -189,13 +189,6 @@ class ConnectionStatusText(BaseText): "//*[@content-desc='connection-status-text']/android.widget.TextView") -class TestFairyWarning(BaseText): - def __init__(self, driver): - super(TestFairyWarning, self).__init__(driver) - self.locator = self.Locator.text_selector(test_fairy_warning_text) - self.is_shown = bool() - - class OkContinueButton(BaseButton): def __init__(self, driver):