From 01b6feb0d0244722436f3c597acdcf00d481101a Mon Sep 17 00:00:00 2001 From: Alena Krauch Date: Wed, 26 Aug 2026 11:38:30 +0300 Subject: [PATCH] ref test_hpa_03.07 Verifying authorized user logout for supporting of the CI timeout update header_page.py #268 --- pages/header_page.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pages/header_page.py b/pages/header_page.py index 6e2f51c3bc..037716aab6 100644 --- a/pages/header_page.py +++ b/pages/header_page.py @@ -701,8 +701,13 @@ def click_logout_button_auth(self): @allure.step("Check for user logout after clicking on the button 'Logout' in the Header for an authorized user") def check_auth_user_logout(self): start_element = self.element_is_present(self.locators2.START_AUTHORIZED_PAGE_TITLE).text + print(start_element) self.click_logout_button_auth() - return self.element_is_present(self.locators2.START_UNAUTHORIZED_PAGE_TITLE).text + # Waiting for the final URL + Wait(self.driver, 60).until(lambda d: d.current_url.startswith("https://www.brainup.site/")) + final_element = self.element_is_present(self.locators2.START_UNAUTHORIZED_PAGE_TITLE).text + print(final_element) + return final_element # Checking images in the Header @allure.step("Check if the 'Logo' image is present in the Header for an unauthorized user")