From 3db2b7447064e68394cbe6cbea0ec15d78b060dd Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Sat, 22 Nov 2025 18:21:23 +0300 Subject: [PATCH] ref test_ersp_03.03, test_ersp_03.06 Verify subgroup links update exercises_ru_similar_phrases_page_test.py, links.py, del exercises_ru_similar_phrases_data.py #478 --- test_data/exercises_ru_similar_phrases_page_data.py | 8 -------- test_data/links.py | 2 +- tests/exercises_ru_similar_phrases_page_test.py | 4 ++-- 3 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 test_data/exercises_ru_similar_phrases_page_data.py diff --git a/test_data/exercises_ru_similar_phrases_page_data.py b/test_data/exercises_ru_similar_phrases_page_data.py deleted file mode 100644 index 87a8d35e3c..0000000000 --- a/test_data/exercises_ru_similar_phrases_page_data.py +++ /dev/null @@ -1,8 +0,0 @@ -"""Data for verifying web elements on the 'Exercises "Similar phrases"' page on the 'ru' local""" -from test_data.links import ExercisesUrls as ExUrls - - -class ExercisesRuSimilarPhrasesPageData: - - breadcrumbs_urls = (ExUrls.STARTING_POINT, f"{ExUrls.STARTING_POINT}/2", - ExUrls.URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE) diff --git a/test_data/links.py b/test_data/links.py index f59a92692d..1b528d6fca 100644 --- a/test_data/links.py +++ b/test_data/links.py @@ -29,7 +29,7 @@ class ExercisesUrls: breadcrumbs_urls_ru_similar_phrases = breadcrumbs_urls_ru + (URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE,) b = f"{URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE}/subgroup/" - subgroup_link_urls = (f"{b}60", f"{b}61", f"{b}62", f"{b}63", f"{b}64", f"{b}65") + subgroup_link_urls_ru_similar_phrases = (f"{b}60", f"{b}61", f"{b}62", f"{b}63", f"{b}64", f"{b}65") # Speech Exercises RU > Words URL_EXERCISES_RU_WORDS_PAGE = f"{STARTING_POINT}/2/series/1" diff --git a/tests/exercises_ru_similar_phrases_page_test.py b/tests/exercises_ru_similar_phrases_page_test.py index c21b20f6b6..4adad82450 100644 --- a/tests/exercises_ru_similar_phrases_page_test.py +++ b/tests/exercises_ru_similar_phrases_page_test.py @@ -134,7 +134,7 @@ def test_ersp_03_03_verify_subgroup_links(self, driver, exercises_ru_similar_phr subgroup_links_href = page.get_subgroup_links_href() subgroup_links_status_codes = page.get_subgroup_link_status_codes() assert subgroup_links_clickability, "Subgroup links are unclickable" - assert all(element in ExUrls.subgroup_link_urls for element in subgroup_links_href), \ + assert all(element in ExUrls.subgroup_link_urls_ru_similar_phrases for element in subgroup_links_href), \ "Attributes 'href' of subgroup links mismatch valid values" assert all(element in erPD.links_status_code for element in subgroup_links_status_codes), \ "Status codes of subgroup links mismatch valid values" @@ -159,7 +159,7 @@ def test_ersp_03_06_verify_subgroup_links_navigation(self, driver, exercises_ru_ page = erspPage(driver) opened_pages = page.click_on_subgroup_links() assert opened_pages, "Transitions to pages have not performed" - assert all(element in ExUrls.subgroup_link_urls for element in opened_pages), \ + assert all(element in ExUrls.subgroup_link_urls_ru_similar_phrases for element in opened_pages), \ "Links lead to incorrect pages" class TestExRuSimPhrPageImages: