From c78635f2dcfc1c98aaff839d1604630b6dc63a04 Mon Sep 17 00:00:00 2001 From: Ondrej Kotek Date: Wed, 22 Nov 2023 14:04:17 +0100 Subject: [PATCH] HAL-1941 Cancel button visible for cancelled management operations --- .../hal/testsuite/page/runtime/ManagementOperationsPage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/org/jboss/hal/testsuite/page/runtime/ManagementOperationsPage.java b/common/src/main/java/org/jboss/hal/testsuite/page/runtime/ManagementOperationsPage.java index 58fc4674..fe9f59de 100644 --- a/common/src/main/java/org/jboss/hal/testsuite/page/runtime/ManagementOperationsPage.java +++ b/common/src/main/java/org/jboss/hal/testsuite/page/runtime/ManagementOperationsPage.java @@ -30,7 +30,7 @@ public ManagementOperationsPage cancelActiveOperation(long operationId) { WebElement cancelButton = getRootContainer().findElement(cancelButtonSelector); cancelButton.click(); console.confirmationDialog().confirm(); - Graphene.waitGui().until().element(cancelButton).is().not().visible(); + Graphene.waitGui().until().element(By.id(Ids.ACTIVE_OPERATION + "-" + operationId)).text().contains("Cancelled: true"); return this; }