Skip to content
Merged
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
7 changes: 6 additions & 1 deletion pages/header_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Loading