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 a1c370b  Fix SSH key deletion in the browser tests
a1c370b is described below

commit a1c370b10b510b8207f967bb2cbc9a71c668e15e
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sun Nov 16 19:25:38 2025 +0000

    Fix SSH key deletion in the browser tests
---
 playwright/test.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/playwright/test.py b/playwright/test.py
index b1bfa29..a7bd112 100755
--- a/playwright/test.py
+++ b/playwright/test.py
@@ -1347,9 +1347,7 @@ def test_tidy_up_ssh_keys_continued(page: sync_api.Page, 
fingerprints_to_delete:
         logging.info(f"Locating delete form for fingerprint: {fingerprint}")
         # Locate again by fingerprint for robustness in case of changes
         card_to_delete_locator = 
page.locator(f"div.card:has(td:has-text('{fingerprint}'))")
-        delete_button_locator = card_to_delete_locator.locator(
-            'form[action="/keys"] input[type="submit"][value="Delete key"]'
-        )
+        delete_button_locator = card_to_delete_locator.get_by_role("button", 
name="Delete key")
 
         if delete_button_locator.is_visible():
             logging.info(f"Delete button found for {fingerprint}, proceeding 
with deletion")


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

Reply via email to