From 11688af755787bc20276955539fbe0c3fd4e2e1b Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Mon, 20 Apr 2026 13:40:11 +0300 Subject: [PATCH] ref test_gp_04.01 Verifying iimages src update group_page.py, group_page_data.py, conftest.py #402 --- pages/groups_page.py | 14 +------------- test_data/groups_page_data.py | 4 ++-- tests/conftest.py | 1 - 3 files changed, 3 insertions(+), 16 deletions(-) diff --git a/pages/groups_page.py b/pages/groups_page.py index 9b6a2f6970..ce18a53dcd 100644 --- a/pages/groups_page.py +++ b/pages/groups_page.py @@ -172,46 +172,34 @@ def get_links_status_codes(self): def click_on_links_on_ru_local(self): opened_pages = [] starting_url = self.driver.current_url - print(starting_url) link1 = self.element_is_present_and_clickable(self.locators.PAGE_LINK1) - # current_url = self.driver.current_url link1.click() # Waiting for the first URL change (intermediate page) Wait(self.driver, 10).until(EC.url_changes(starting_url)) intermediate_url = self.driver.current_url - print(intermediate_url) # Waiting for the second URL change (aimed page) Wait(self.driver, 10).until(EC.url_changes(intermediate_url)) - current_url = self.driver.current_url - print(current_url) opened_pages.append(self.get_current_tab_url()) self.element_is_present_and_clickable(self.locators1.LOGO_LINK).click() - starting_url = self.driver.current_url - print(starting_url) # Waiting for the starting page loading Wait(self.driver, 10).until(EC.presence_of_element_located((By.TAG_NAME, "h3"))) + starting_url = self.driver.current_url link2 = self.element_is_present_and_clickable(self.locators.PAGE_LINK2) - # current_url = self.driver.current_url link2.click() # Waiting for the first URL change (intermediate page) Wait(self.driver, 10).until(EC.url_changes(starting_url)) intermediate_url = self.driver.current_url - print(intermediate_url) # Waiting for the second URL change (aimed page) Wait(self.driver, 10).until(EC.url_changes(intermediate_url)) - current_url = self.driver.current_url - print(current_url) - - # Wait(self.driver, 10).until(EC.url_changes(current_url)) opened_pages.append(self.get_current_tab_url()) print(opened_pages) diff --git a/test_data/groups_page_data.py b/test_data/groups_page_data.py index 651fc7318d..0344bc40bd 100644 --- a/test_data/groups_page_data.py +++ b/test_data/groups_page_data.py @@ -21,8 +21,8 @@ class GroupsPageData: 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") - images_src = (f"{s}pictures/exercise-type/speech-exercises.svg", - f"{s}pictures/exercise-type/non-speech-exercises.svg") + images_src = (f"{s}pictures/exercise-type/speech-exercises.png", + f"{s}pictures/exercise-type/non-speech-exercises.png") links_status_code = (200,) diff --git a/tests/conftest.py b/tests/conftest.py index cb41b1f92b..2884c717fc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -65,7 +65,6 @@ def groups_ru_page_open(driver, auto_test_user_authorized): def subtitle2(driver): subtitle2 = driver.find_element(*GroupsPageLocators.PAGE_SUBTITLE2).text - print(subtitle2) return subtitle2 in GroupsPageData.page_subtitles_ru Wait(driver, 20).until(subtitle2)