From 89b0ff09d9fd4a089c240408f821b9048d46d6b5 Mon Sep 17 00:00:00 2001 From: AnnaShepa Date: Sun, 25 Apr 2021 17:56:48 +0200 Subject: [PATCH] Fix displayed scripts check --- src/e2e_tests/conftest.py | 4 ++-- src/e2e_tests/sample_scripts/test_presented_scripts.py | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/e2e_tests/conftest.py b/src/e2e_tests/conftest.py index 44c5162d..db13ff8d 100644 --- a/src/e2e_tests/conftest.py +++ b/src/e2e_tests/conftest.py @@ -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: @@ -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') diff --git a/src/e2e_tests/sample_scripts/test_presented_scripts.py b/src/e2e_tests/sample_scripts/test_presented_scripts.py index e4f48f10..a39e36af 100644 --- a/src/e2e_tests/sample_scripts/test_presented_scripts.py +++ b/src/e2e_tests/sample_scripts/test_presented_scripts.py @@ -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)