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

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


The following commit(s) were added to refs/heads/main by this push:
     new 07e118a  Add polling to ensure that tasks complete in the browser tests
07e118a is described below

commit 07e118a1a0a8ed24db4bb51f470cf5cc54739603
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Oct 14 11:13:56 2025 +0100

    Add polling to ensure that tasks complete in the browser tests
---
 playwright/test.py | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/playwright/test.py b/playwright/test.py
index f104791..5f31217 100755
--- a/playwright/test.py
+++ b/playwright/test.py
@@ -156,6 +156,19 @@ def lifecycle_03_add_file(page: sync_api.Page, 
credentials: Credentials, version
 
     logging.info(f"Navigating back to /compose/{TEST_PROJECT}/{version_name}")
     go_to_path(page, f"/compose/{TEST_PROJECT}/{version_name}")
+
+    logging.info("Extracting latest revision from compose page")
+    revision_link_locator = 
page.locator(f'a[href^="/revisions/{TEST_PROJECT}/{version_name}#"]')
+    sync_api.expect(revision_link_locator).to_be_visible()
+    revision_href = revision_link_locator.get_attribute("href")
+    if not revision_href:
+        raise RuntimeError("Could not find revision link href")
+    revision = revision_href.split("#", 1)[-1]
+    logging.info(f"Found revision: {revision}")
+
+    logging.info("Polling for task completion after file upload")
+    poll_for_tasks_completion(page, TEST_PROJECT, version_name, revision)
+
     logging.info(f"Navigation back to /compose/{TEST_PROJECT}/{version_name} 
completed successfully")
 
 
@@ -794,7 +807,6 @@ def test_lifecycle_01_add_draft(page: sync_api.Page, 
credentials: Credentials) -
     lifecycle_01_add_draft(page, credentials, version_name="0.1+candidate")
     lifecycle_01_add_draft(page, credentials, version_name="0.1+preview")
     lifecycle_01_add_draft(page, credentials, version_name="0.1+release")
-    raise RuntimeError("Deliberate failure to test CI")
 
 
 def test_lifecycle_02_check_draft_added(page: sync_api.Page, credentials: 
Credentials) -> None:


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

Reply via email to