Skip to content

Commit

Permalink
Fix displayed scripts check
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaShepa committed Apr 25, 2021
1 parent bea773e commit 89b0ff0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/e2e_tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
SUPPORTED_BROWSERS = ['chrome', 'firefox', 'ie']
DEFAULT_HEADLESS_MODE = True
DEFAULT_SCREENSHOTS_NEEDED = False
DEFAULT_SCRIPTS = ["Bash formatting", "colortest", "destroy_world", "Download kittens", "Multiple words", "Very parameterized", "Write to file (WIN)", "HTML"]
DEFAULT_DISPLAYED_SCRIPTS = ["Bash formatting", "colortest", "destroy_world", "Download kittens", "Multiple words", "Very parameterized", "Write to file (WIN)"]


with open(CONFIG_PATH) as config_file:
Expand Down Expand Up @@ -43,7 +43,7 @@ def config_headless_mode():

@pytest.fixture(scope='session')
def scripts():
return (config['scripts']) if 'scripts' in config else DEFAULT_SCRIPTS
return (config['scripts']) if 'scripts' in config else DEFAULT_DISPLAYED_SCRIPTS


@pytest.fixture(scope='module')
Expand Down
8 changes: 0 additions & 8 deletions src/e2e_tests/sample_scripts/test_presented_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@ def test_presented_scripts_by_name(browser, config_host, scripts):
expect(is_displayed(home_page.get_script_link_by_name(required_script)), "Script by name \"{}\" not found".format(required_script))

assert_expectations()


@severity(severity_level.NORMAL)
@allure.title("Check scripts amount")
def test_presented_scripts_amount(browser, config_host, scripts):
home_page = Page(browser, config_host)

assert len(scripts) == len(home_page.all_script_links)

0 comments on commit 89b0ff0

Please sign in to comment.