pages/desktop/frontend/home.py [127:136]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            self.wait.until(EC.number_of_windows_to_be(2))
            new_tab = self.driver.window_handles[1]
            self.driver.switch_to.window(new_tab)
            # see more external links can contain variable content we might not know in advance (especially on prod)
            # the solution used here is to verify that the content we link to is available (i.e. page response = 200)
            self.wait.until(custom_waits.url_not_contains("about:blank"))
            page = requests.head(self.driver.current_url)
            assert (
                page.status_code == 200
            ), f"The response status code was {page.status_code}"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



pages/desktop/frontend/home.py [409:420]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                    self.wait.until(EC.number_of_windows_to_be(2))
                    new_tab = self.driver.window_handles[1]
                    self.driver.switch_to.window(new_tab)
                    # editorial might change these links when they need to push new content and we don't know
                    # in advance what that content might be; also, we want to avoid frequent maintenance for
                    # these tests; the solution used is to verify that the content we link to is available
                    # (i.e. we check that the page response status is 200)
                    self.wait.until(custom_waits.url_not_contains("about:blank"))
                    page = requests.head(self.driver.current_url)
                    assert (
                        page.status_code == 200
                    ), f"The response status code was {page.status_code}"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



