Skip to content

Commit

Permalink
DEVPROD-5753: Update test to accommodate updated test data (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupaJoon authored Oct 1, 2024
1 parent 7c6cf86 commit 4a1382f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/spruce/cypress/integration/hosts/update_status_modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("Update Status Modal", () => {

cy.dataCy("host-status-select").click();

cy.dataCy("decommissioned-option").click();
cy.dataCy("terminated-option").click();

cy.dataCy("host-status-notes").type("notes");

Expand All @@ -26,7 +26,6 @@ describe("Update Status Modal", () => {
cy.contains("button", "Update").click({ force: true });
});
cy.dataCy("update-host-status-modal").should("not.exist");
// Because the static hosts that exists in the dev environment cannot be decommissioned, we should expect an error.
cy.validateToast("error");
cy.validateToast("success");
});
});

0 comments on commit 4a1382f

Please sign in to comment.