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
2 changes: 1 addition & 1 deletion pages/base_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def check_expected_link(self, url):
# return Wait(self.driver, self.timeout).until(
# EC.url_to_be(url), message=f"Can't find element by locator {url}")
return Wait(self.driver, self.timeout).until(
lambda d: "brainup.site" in d.current_url and "/groups" in d.current_url
lambda driver: driver.current_url.startswith(url), message=f"Can't find element by locator {url}"
)
except Exception as ex:
print(ex)
Expand Down
6 changes: 3 additions & 3 deletions tests/header_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,21 +140,21 @@ def test_hpu_03_03_verify_unauth_external_links_lead_to_correct_pages(self, driv

@allure.title("""Verify if external Telegram link in the Header for an unauthorized user
leads to a correct page after click""")
def test_hpu_03_03_01_verify_unauth_Telegram_link_navigation(self, driver, main_page_open):
def test_hpu_03_03_01_verify_unauth_telegram_link_navigation(self, driver, main_page_open):
page = hPage(driver)
opened_page = page.click_on_Telegram_link()
assert opened_page in hPD.set_unauth, "The Telegram link leads to an incorrect page after clicking"

@allure.title("""Verify if external Donate link in the Header for an unauthorized user
leads to a correct page after click""")
def test_hpu_03_03_02_verify_unauth_Donate_link_navigation(self, driver, main_page_open):
def test_hpu_03_03_02_verify_unauth_donate_link_navigation(self, driver, main_page_open):
page = hPage(driver)
opened_page = page.click_on_Donate_link()
assert opened_page in hPD.set_unauth, "The Donate link leads to an incorrect page after clicking"

@allure.title("""Verify if external GitHub link in the Header for an unauthorized user
leads to a correct page after click""")
def test_hpu_03_03_03_verify_unauth_GitHub_link_navigation(self, driver, main_page_open):
def test_hpu_03_03_03_verify_unauth_github_link_navigation(self, driver, main_page_open):
page = hPage(driver)
opened_page = page.click_on_GitHub_link()
assert opened_page in hPD.set_unauth, "The GitHub link leads to an incorrect page after clicking"
Expand Down
Loading