From 916e13b7f519278bcf7c3bcd89e399789a5a6f60 Mon Sep 17 00:00:00 2001 From: Digvijay Jatkar Date: Wed, 9 Sep 2026 18:12:57 +0100 Subject: [PATCH 1/4] EAPQE-5337 adapt update-manager tests to new radio button wizard UI --- .../e2e/update-manager/test-update-custom-patch.cy.ts | 9 +++++---- .../e2e/update-manager/test-update-offline-archive.cy.ts | 5 +++-- .../test-update-online-and-revert-back.cy.ts | 5 +++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts index e0c7046d2..354ab2200 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts @@ -18,10 +18,11 @@ describe("TESTS: Update Manager => Updates => Custom patches", () => { it("Update server by custom patch", () => { cy.navigateToUpdateManagerPage(managementEndpoint, address); - cy.get("#update-manager-update-add-actions").click(); - cy.get("#update-manager-update-patch").click(); + cy.get("#update-manager-update-update").click(); + cy.get("input[type='radio'][name='type'][value='CUSTOM_PATCH']").check(); + cy.confirmNextInWizard(); cy.env(["PATCH_ZIP"]).then((env) => { - cy.get("input#update-manager-update-patch-form-custom-patch-file-editing").selectFile( + cy.get("input#update-manager-properties-form-custom-patch-file-editing").selectFile( env["PATCH_ZIP"] as string, { action: "drag-drop", @@ -29,7 +30,7 @@ describe("TESTS: Update Manager => Updates => Custom patches", () => { }, ); }); - cy.text("update-manager-update-patch-form", "manifest", "org.jboss.qe.eap:one-off-1"); + cy.text("update-manager-properties-form", "manifest", "org.jboss.qe.eap:one-off-1"); cy.confirmNextInWizard(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts index c62e7af9c..d3649c06a 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts @@ -18,8 +18,9 @@ describe("TESTS: Update Manager => Updates => Offline using archive", () => { it("Ofline update from zip", () => { cy.navigateToUpdateManagerPage(managementEndpoint, address); - cy.get("#update-manager-update-add-actions").click(); - cy.get("#update-manager-update-offline").click(); + cy.get("#update-manager-update-update").click(); + cy.get("input[type='radio'][name='type'][value='OFFLINE']").check(); + cy.confirmNextInWizard(); cy.env(["UPDATE_ZIP"]).then((env) => { cy.get("input#upload-file-input").selectFile(env["UPDATE_ZIP"] as string, { action: "drag-drop", diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts index e406383fc..72a351fc5 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts @@ -18,8 +18,9 @@ describe("TESTS: Update Manager => Updates => Online updates => Revert", () => { it("Online update", () => { cy.navigateToUpdateManagerPage(managementEndpoint, address); - cy.get("#update-manager-update-add-actions").click(); - cy.get("#update-manager-update-online").click(); + cy.get("#update-manager-update-update").click(); + cy.get("input[type='radio'][name='type'][value='ONLINE']").check(); + cy.confirmNextInWizard(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Server candidate prepared"); From ebc3789a736d366be371f4310cc944ba36461221 Mon Sep 17 00:00:00 2001 From: Digvijay Jatkar Date: Fri, 11 Sep 2026 19:46:03 +0100 Subject: [PATCH 2/4] EAPQE-5337 fix offline radio value and revert button selector --- .../e2e/update-manager/test-update-offline-archive.cy.ts | 2 +- .../update-manager/test-update-online-and-revert-back.cy.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts index d3649c06a..9ff108410 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts @@ -19,7 +19,7 @@ describe("TESTS: Update Manager => Updates => Offline using archive", () => { it("Ofline update from zip", () => { cy.navigateToUpdateManagerPage(managementEndpoint, address); cy.get("#update-manager-update-update").click(); - cy.get("input[type='radio'][name='type'][value='OFFLINE']").check(); + cy.get("input[type='radio'][name='type'][value='OFFLINE_WITH_REPO']").check(); cy.confirmNextInWizard(); cy.env(["UPDATE_ZIP"]).then((env) => { cy.get("input#upload-file-input").selectFile(env["UPDATE_ZIP"] as string, { diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts index 72a351fc5..fe0045dff 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts @@ -33,8 +33,8 @@ describe("TESTS: Update Manager => Updates => Online updates => Revert", () => { it("Revert the update", () => { cy.navigateToUpdateManagerPage(managementEndpoint, address); - cy.get("#update-manager-update > ul > li").first().click(); - cy.get("#update-manager-update > ul > li > a.clickable.btn.btn-finder").first().click(); + cy.get("#update-manager-update > ul > li").eq(1).click(); + cy.get("#update-manager-update > ul > li").eq(1).find("a.clickable.btn.btn-finder").click(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Server candidate prepared"); From d465a0721e18e47d6feef5c39acf9b639e272f9a Mon Sep 17 00:00:00 2001 From: Digvijay Jatkar Date: Fri, 11 Sep 2026 21:14:50 +0100 Subject: [PATCH 3/4] EAPQE-5337 fix offline file input selector for OFFLINE_WITH_REPO properties step --- .../e2e/update-manager/test-update-offline-archive.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts index 9ff108410..6e2e60e59 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts @@ -22,7 +22,7 @@ describe("TESTS: Update Manager => Updates => Offline using archive", () => { cy.get("input[type='radio'][name='type'][value='OFFLINE_WITH_REPO']").check(); cy.confirmNextInWizard(); cy.env(["UPDATE_ZIP"]).then((env) => { - cy.get("input#upload-file-input").selectFile(env["UPDATE_ZIP"] as string, { + cy.get("input#update-manager-properties-form-maven-repo-files-editing").selectFile(env["UPDATE_ZIP"] as string, { action: "drag-drop", force: true, }); From ab9d90a3590d3d0f13fd77abdb36b7c3b404abcb Mon Sep 17 00:00:00 2001 From: Digvijay Jatkar Date: Tue, 22 Sep 2026 13:44:02 +0100 Subject: [PATCH 4/4] EAPQE-5337 fix .contains() timeouts in update-manager wizard tests --- .../e2e/update-manager/test-update-custom-patch.cy.ts | 4 ++-- .../e2e/update-manager/test-update-offline-archive.cy.ts | 4 ++-- .../test-update-online-and-revert-back.cy.ts | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts index 354ab2200..e2e9c59a5 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-custom-patch.cy.ts @@ -34,9 +34,9 @@ describe("TESTS: Update Manager => Updates => Custom patches", () => { cy.confirmNextInWizard(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Server candidate prepared"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Server candidate prepared", { timeout: timeoutTime }); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Updates applied"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Updates applied", { timeout: timeoutTime }); cy.confirmFinishInWizard(); // After the update there should be visible 4 items in history cy.get("#update-manager-update > ul > li").should("have.length", 4); diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts index 6e2e60e59..820ce0084 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-offline-archive.cy.ts @@ -30,9 +30,9 @@ describe("TESTS: Update Manager => Updates => Offline using archive", () => { cy.confirmNextInWizard(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Server candidate prepared"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Server candidate prepared", { timeout: timeoutTime }); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Updates applied"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Updates applied", { timeout: timeoutTime }); cy.confirmFinishInWizard(); // After the update there should be visible 3 items in history cy.get("#update-manager-update > ul > li").should("have.length", 3); diff --git a/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts b/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts index fe0045dff..b90991537 100644 --- a/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts +++ b/packages/testsuite/cypress/e2e/update-manager/test-update-online-and-revert-back.cy.ts @@ -23,9 +23,9 @@ describe("TESTS: Update Manager => Updates => Online updates => Revert", () => { cy.confirmNextInWizard(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Server candidate prepared"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Server candidate prepared", { timeout: timeoutTime }); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Updates applied"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Updates applied", { timeout: timeoutTime }); cy.confirmFinishInWizard(); // After the update there should be visible 3 items in history cy.get("#update-manager-update > ul > li").should("have.length", 3); @@ -37,9 +37,9 @@ describe("TESTS: Update Manager => Updates => Online updates => Revert", () => { cy.get("#update-manager-update > ul > li").eq(1).find("a.clickable.btn.btn-finder").click(); cy.get("#update-manager-list-updates", { timeout: timeoutTime }).should("be.visible").contains(artifactToBeUpdated); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Server candidate prepared"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Server candidate prepared", { timeout: timeoutTime }); cy.confirmNextInWizard(); - cy.get("div.blank-slate-pf.wizard-pf-complete", { timeout: timeoutTime }).contains("Updates applied"); + cy.contains("div.blank-slate-pf.wizard-pf-complete", "Updates applied", { timeout: timeoutTime }); cy.confirmFinishInWizard(); // After the update there should be visible 4 items in history cy.get("#update-manager-update > ul > li").should("have.length", 4);