From 4a1382f46a9617e193f61a116def7904f50fd0a9 Mon Sep 17 00:00:00 2001
From: SupaJoon <arjun453@gmail.com>
Date: Tue, 1 Oct 2024 10:25:45 -0400
Subject: [PATCH] DEVPROD-5753: Update test to accommodate updated test data
 (#410)

---
 apps/spruce/cypress/integration/hosts/update_status_modal.ts | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/apps/spruce/cypress/integration/hosts/update_status_modal.ts b/apps/spruce/cypress/integration/hosts/update_status_modal.ts
index 51102d24c..1b38afa78 100644
--- a/apps/spruce/cypress/integration/hosts/update_status_modal.ts
+++ b/apps/spruce/cypress/integration/hosts/update_status_modal.ts
@@ -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");
 
@@ -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");
   });
 });