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

commit 83b0343954aecfbd52e5069a9320526dd869ea1c
Author: Sean B. Palmer <[email protected]>
AuthorDate: Mon Mar 2 18:20:03 2026 +0000

    Make one of the compose tests more reliable
---
 tests/e2e/compose/test_get.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/e2e/compose/test_get.py b/tests/e2e/compose/test_get.py
index 267dbcc5..bbf6f76a 100644
--- a/tests/e2e/compose/test_get.py
+++ b/tests/e2e/compose/test_get.py
@@ -58,6 +58,11 @@ def 
test_ongoing_tasks_banner_appears_when_tasks_restart(page_compose: Page) ->
     with page_compose.expect_navigation():
         restart_button.click()
 
+    count_text = page_compose.locator("#ongoing-tasks-count").text_content() 
or "0"
+    if int(count_text) == 0:
+        expect(banner).to_be_hidden()
+        return
+
     expect(banner).to_be_visible(timeout=10000)
 
     progress_bar = page_compose.locator("#poll-progress")


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

Reply via email to