This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch sbp
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git


The following commit(s) were added to refs/heads/sbp by this push:
     new 996965f6 Make e2e voting tests more reliable
996965f6 is described below

commit 996965f6e87add1019249b6b946d5b6993c74f53
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Mar 11 20:26:52 2026 +0000

    Make e2e voting tests more reliable
---
 tests/e2e/voting/conftest.py | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/tests/e2e/voting/conftest.py b/tests/e2e/voting/conftest.py
index 2eb7d481..58cb68dd 100644
--- a/tests/e2e/voting/conftest.py
+++ b/tests/e2e/voting/conftest.py
@@ -72,16 +72,10 @@ def voting_context(browser: Browser) -> 
Generator[BrowserContext]:
     page.get_by_role("button", name="Add files").click()
     page.wait_for_url(f"**/compose/{PROJECT_NAME}/{VERSION_NAME}")
 
-    helpers.visit(page, COMPOSE_URL)
-    _wait_for_tasks_banner_hidden(page, timeout=60000)
+    helpers.wait_for_upload_and_tasks(page, COMPOSE_URL, FILE_NAME)
 
     page.close()
 
     yield context
 
     context.close()
-
-
-def _wait_for_tasks_banner_hidden(page: Page, timeout: int = 30000) -> None:
-    """Wait for all background tasks to be completed."""
-    page.wait_for_selector("#ongoing-tasks-banner", state="hidden", 
timeout=timeout)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to