Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,19 @@ 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",
force: true,
},
);
});
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ 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_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,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -32,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");
Expand Down
Loading