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
1 change: 1 addition & 0 deletions pages/exercises_ru_similar_phrases_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def click_on_breadcrumbs_links(self):
self.driver.back()
Wait(self.driver, self.timeout).until(EC.url_to_be(group_page_url))

print(*opened_pages, sep='\n')
return opened_pages

@allure.step("Click on group links and thereby open corresponding web pages in the same tab")
Expand Down
8 changes: 3 additions & 5 deletions test_data/exercises_ru_similar_phrases_page_data.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Data for verifying web elements on the 'Exercises "Similar phrases"' page on the 'ru' local"""
from test_data.links import MainPageLinks as Links
from test_data.links import ExercisesUrls as ExUrls


Expand All @@ -22,11 +21,10 @@ class ExercisesRuSimilarPhrasesPageData:
subgroup_links_text = ('Разной длительности', 'С частицей Не', 'Похожие',
'С разным окончанием', 'Из коротких слов', 'С разными предлогами')

breadcrumbs_urls = (f"{Links.URL_GROUPS_PAGE}",
f"{Links.URL_GROUPS_PAGE}/2",
f"{Links.URL_GROUPS_PAGE}/2/series/2")
breadcrumbs_urls = (ExUrls.STARTING_POINT, f"{ExUrls.STARTING_POINT}/2",
ExUrls.URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE)

p = f"{Links.URL_GROUPS_PAGE}/2/series/"
p = f"{ExUrls.STARTING_POINT}/2/series/"
group_link_urls = (f"{p}1", f"{p}2", f"{p}3", f"{p}4", f"{p}5", f"{p}6", f"{p}17")

q = f"{ExUrls.URL_EXERCISES_RU_SIMILAR_PHRASES_PAGE}/subgroup/"
Expand Down