Skip to content

Commit 11688af

Browse files
ref test_gp_04.01 Verifying iimages src
update group_page.py, group_page_data.py, conftest.py #402
1 parent ac817a0 commit 11688af

3 files changed

Lines changed: 3 additions & 16 deletions

File tree

pages/groups_page.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -172,46 +172,34 @@ def get_links_status_codes(self):
172172
def click_on_links_on_ru_local(self):
173173
opened_pages = []
174174
starting_url = self.driver.current_url
175-
print(starting_url)
176175

177176
link1 = self.element_is_present_and_clickable(self.locators.PAGE_LINK1)
178-
# current_url = self.driver.current_url
179177
link1.click()
180178

181179
# Waiting for the first URL change (intermediate page)
182180
Wait(self.driver, 10).until(EC.url_changes(starting_url))
183181
intermediate_url = self.driver.current_url
184-
print(intermediate_url)
185182

186183
# Waiting for the second URL change (aimed page)
187184
Wait(self.driver, 10).until(EC.url_changes(intermediate_url))
188-
current_url = self.driver.current_url
189-
print(current_url)
190185

191186
opened_pages.append(self.get_current_tab_url())
192187

193188
self.element_is_present_and_clickable(self.locators1.LOGO_LINK).click()
194-
starting_url = self.driver.current_url
195-
print(starting_url)
196189

197190
# Waiting for the starting page loading
198191
Wait(self.driver, 10).until(EC.presence_of_element_located((By.TAG_NAME, "h3")))
192+
starting_url = self.driver.current_url
199193

200194
link2 = self.element_is_present_and_clickable(self.locators.PAGE_LINK2)
201-
# current_url = self.driver.current_url
202195
link2.click()
203196

204197
# Waiting for the first URL change (intermediate page)
205198
Wait(self.driver, 10).until(EC.url_changes(starting_url))
206199
intermediate_url = self.driver.current_url
207-
print(intermediate_url)
208200

209201
# Waiting for the second URL change (aimed page)
210202
Wait(self.driver, 10).until(EC.url_changes(intermediate_url))
211-
current_url = self.driver.current_url
212-
print(current_url)
213-
214-
# Wait(self.driver, 10).until(EC.url_changes(current_url))
215203

216204
opened_pages.append(self.get_current_tab_url())
217205
print(opened_pages)

test_data/groups_page_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class GroupsPageData:
2121

2222
pages_urls = (f"{s}groups/1/series/18", f"{s}groups/2/series/1", f"{s}groups/3/series/14", f"{s}groups/4/series/10")
2323

24-
images_src = (f"{s}pictures/exercise-type/speech-exercises.svg",
25-
f"{s}pictures/exercise-type/non-speech-exercises.svg")
24+
images_src = (f"{s}pictures/exercise-type/speech-exercises.png",
25+
f"{s}pictures/exercise-type/non-speech-exercises.png")
2626

2727
links_status_code = (200,)
2828

tests/conftest.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ def groups_ru_page_open(driver, auto_test_user_authorized):
6565

6666
def subtitle2(driver):
6767
subtitle2 = driver.find_element(*GroupsPageLocators.PAGE_SUBTITLE2).text
68-
print(subtitle2)
6968
return subtitle2 in GroupsPageData.page_subtitles_ru
7069

7170
Wait(driver, 20).until(subtitle2)

0 commit comments

Comments
 (0)