mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-25 14:57:05 +00:00
added test_open_blocked_site
Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
parent
4103591fe1
commit
c08e370aa3
@ -30,6 +30,13 @@ class TestBrowsing(SingleDeviceTestCase):
|
|||||||
if home_view.element_by_text('Browser').is_element_displayed():
|
if home_view.element_by_text('Browser').is_element_displayed():
|
||||||
pytest.fail('Browser entity is shown for an invalid link')
|
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.testrail_id(5430)
|
||||||
@marks.medium
|
@marks.medium
|
||||||
def test_connection_is_not_secure(self):
|
def test_connection_is_not_secure(self):
|
||||||
|
@ -41,7 +41,7 @@ def pytest_addoption(parser):
|
|||||||
action='store',
|
action='store',
|
||||||
default='8.0',
|
default='8.0',
|
||||||
help='Android device platform version')
|
help='Android device platform version')
|
||||||
parser.addoption('--log',
|
parser.addoption('--log_steps',
|
||||||
action='store',
|
action='store',
|
||||||
default=False,
|
default=False,
|
||||||
help='Display each test step in terminal as plain text: True/False')
|
help='Display each test step in terminal as plain text: True/False')
|
||||||
@ -136,7 +136,7 @@ def is_uploaded():
|
|||||||
def pytest_configure(config):
|
def pytest_configure(config):
|
||||||
config.addinivalue_line("markers", "testrail_id(name): empty")
|
config.addinivalue_line("markers", "testrail_id(name): empty")
|
||||||
|
|
||||||
if config.getoption('log'):
|
if config.getoption('log_steps'):
|
||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level=logging.INFO)
|
logging.basicConfig(level=logging.INFO)
|
||||||
if config.getoption('env') != 'api':
|
if config.getoption('env') != 'api':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user