diff --git a/pages/base_page.py b/pages/base_page.py index ba5a915087..f632c64772 100644 --- a/pages/base_page.py +++ b/pages/base_page.py @@ -83,7 +83,7 @@ def go_to_element(self, element): def check_expected_link(self, url): with allure.step(f'Check url starts with: {url}'): # Increasing the CI timeout - timeout = 45 if os.getenv('GITHUB_ACTIONS') else self.timeout + timeout = 60 if os.getenv('GITHUB_ACTIONS') else self.timeout # Waiting for URL Wait(self.driver, timeout).until( diff --git a/pages/used_resources_page.py b/pages/used_resources_page.py index 7ac7121a05..3f4e650e92 100644 --- a/pages/used_resources_page.py +++ b/pages/used_resources_page.py @@ -94,8 +94,8 @@ def get_links_status_codes_detail(self): links_href = self.get_links_href() for link_href in links_href: - link_status_code = requests.head(link_href).status_code - # print(f'For the link: {link_href}, \nstatus code: {link_status_code}') + link_status_code = requests.head(link_href, timeout=60).status_code + print(f'For the link: {link_href}, \nstatus code: {link_status_code}') status_codes.append(link_status_code) return status_codes diff --git a/tests/used_resources_page_test.py b/tests/used_resources_page_test.py index b4f5129147..74d77fd978 100644 --- a/tests/used_resources_page_test.py +++ b/tests/used_resources_page_test.py @@ -74,6 +74,7 @@ def test_ur_03_01_verify_links_in_sections(self, driver, used_resources_page_ope links_visibility = page.check_links_visibility() links_clickability = page.check_links_clickability() links_href = page.get_links_href() + print(links_href) link_status_codes = page.get_links_status_codes_detail() assert links_presence, "Links are absent on the page" assert links_visibility, "Links are invisible"