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():
|
||||
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):
|
||||
|
|
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue