Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions test_data/exercises_ru_similar_phrases_page_data.py

This file was deleted.

2 changes: 1 addition & 1 deletion test_data/links.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions tests/exercises_ru_similar_phrases_page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down