From c08e370aa33005db7ffb71243d3deab074e64989 Mon Sep 17 00:00:00 2001 From: Anton Danchenko Date: Thu, 23 May 2019 12:04:41 +0300 Subject: [PATCH] added test_open_blocked_site Signed-off-by: Anton Danchenko --- .../tests/atomic/dapps_and_browsing/test_browsing.py | 7 +++++++ test/appium/tests/conftest.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py index e6a6b3ba74..313b4ea0cf 100644 --- a/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py +++ b/test/appium/tests/atomic/dapps_and_browsing/test_browsing.py @@ -30,6 +30,13 @@ class TestBrowsing(SingleDeviceTestCase): if home_view.element_by_text('Browser').is_element_displayed(): pytest.fail('Browser entity is shown for an invalid link') + @marks.testrail_id(6210) + @marks.high + def test_open_blocked_site(self): + home_view = SignInView(self.driver).create_user() + daap_view = home_view.dapp_tab_button.click() + daap_view.open_url('https://www.cryptokitties.domainname').find_text_part('This site is blocked') + @marks.testrail_id(5430) @marks.medium def test_connection_is_not_secure(self): diff --git a/test/appium/tests/conftest.py b/test/appium/tests/conftest.py index 4886ed4b48..c585ea425e 100644 --- a/test/appium/tests/conftest.py +++ b/test/appium/tests/conftest.py @@ -41,7 +41,7 @@ def pytest_addoption(parser): action='store', default='8.0', help='Android device platform version') - parser.addoption('--log', + parser.addoption('--log_steps', action='store', default=False, help='Display each test step in terminal as plain text: True/False') @@ -136,7 +136,7 @@ def is_uploaded(): def pytest_configure(config): config.addinivalue_line("markers", "testrail_id(name): empty") - if config.getoption('log'): + if config.getoption('log_steps'): import logging logging.basicConfig(level=logging.INFO) if config.getoption('env') != 'api':