From 33047a86bab3c15470829431015df1c8a59d98f6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 May 2025 11:45:08 +0300 Subject: try adding selenium page timeout --- tests/integration/selenium_test.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/integration/selenium_test.py') diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index 11aa96fc0..49fb885b9 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -18,6 +18,8 @@ class SeleniumTest(unittest.TestCase): self.driver = webdriver.Remote(command_executor=SELENIUM_GRID_ENDPOINT, options=webdriver.ChromeOptions()) self.base_url = f"http://tt-rss-{CI_COMMIT_SHORT_SHA}-app.{K8S_NAMESPACE}.svc.cluster.local/tt-rss" + self.driver.set_page_load_timeout(10) + def tearDown(self): self.driver.quit() -- cgit v1.2.3-54-g00ecf From 99caba74a9ba38f5f4d8ec5b90d9bc634b2f603c Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 May 2025 11:48:40 +0300 Subject: also add driver implicit wait for element search --- tests/integration/selenium_test.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/integration/selenium_test.py') diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index 49fb885b9..ef4929105 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -19,6 +19,7 @@ class SeleniumTest(unittest.TestCase): self.base_url = f"http://tt-rss-{CI_COMMIT_SHORT_SHA}-app.{K8S_NAMESPACE}.svc.cluster.local/tt-rss" self.driver.set_page_load_timeout(10) + self.driver.driver.implicitly_wait(10) def tearDown(self): self.driver.quit() -- cgit v1.2.3-54-g00ecf From cb6fe8f974898421739e5c825780ad1301b312ab Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 May 2025 12:36:20 +0300 Subject: adjust timeouts --- tests/integration/selenium_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/integration/selenium_test.py') diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index ef4929105..f3ae0e346 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -18,8 +18,7 @@ class SeleniumTest(unittest.TestCase): self.driver = webdriver.Remote(command_executor=SELENIUM_GRID_ENDPOINT, options=webdriver.ChromeOptions()) self.base_url = f"http://tt-rss-{CI_COMMIT_SHORT_SHA}-app.{K8S_NAMESPACE}.svc.cluster.local/tt-rss" - self.driver.set_page_load_timeout(10) - self.driver.driver.implicitly_wait(10) + self.driver.driver.implicitly_wait(2) def tearDown(self): self.driver.quit() -- cgit v1.2.3-54-g00ecf From 80647fa4e81aafed93aa74e5f6c197fdd03646a2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 May 2025 12:40:23 +0300 Subject: fix typo --- tests/integration/selenium_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/integration/selenium_test.py') diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index f3ae0e346..068f40c9b 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -18,7 +18,7 @@ class SeleniumTest(unittest.TestCase): self.driver = webdriver.Remote(command_executor=SELENIUM_GRID_ENDPOINT, options=webdriver.ChromeOptions()) self.base_url = f"http://tt-rss-{CI_COMMIT_SHORT_SHA}-app.{K8S_NAMESPACE}.svc.cluster.local/tt-rss" - self.driver.driver.implicitly_wait(2) + self.driver.implicitly_wait(2) def tearDown(self): self.driver.quit() -- cgit v1.2.3-54-g00ecf From 9c66b9b326002f2ae5b334af08de44c00354818f Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 May 2025 12:42:41 +0300 Subject: adjust timeouts again --- tests/integration/selenium_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/integration/selenium_test.py') diff --git a/tests/integration/selenium_test.py b/tests/integration/selenium_test.py index 068f40c9b..de25afad5 100644 --- a/tests/integration/selenium_test.py +++ b/tests/integration/selenium_test.py @@ -18,7 +18,7 @@ class SeleniumTest(unittest.TestCase): self.driver = webdriver.Remote(command_executor=SELENIUM_GRID_ENDPOINT, options=webdriver.ChromeOptions()) self.base_url = f"http://tt-rss-{CI_COMMIT_SHORT_SHA}-app.{K8S_NAMESPACE}.svc.cluster.local/tt-rss" - self.driver.implicitly_wait(2) + self.driver.implicitly_wait(5) def tearDown(self): self.driver.quit() -- cgit v1.2.3-54-g00ecf