- Click on any sandbox below to initiate destruction. All sandboxes are highlighted in red.
-
-
+
+
+
+ DESTROY SANDBOX
+
+
+ Click a sandbox below to destroy it.
+
+
+
+
+
+ {lifecycleMessage && (
+
+ {lifecycleMessage}
+
+ )}
+
+ {inventoryEnabled && loading ? (
+
+ ) : inventoryEnabled && error ? (
+
+
Inventory Unavailable
+
{error}
+
+ ) : (
+
+ )}
) : (
<>
diff --git a/tests/sandbox-lifecycle-check.mjs b/tests/sandbox-lifecycle-check.mjs
index 7a7ffaf..c0fecff 100644
--- a/tests/sandbox-lifecycle-check.mjs
+++ b/tests/sandbox-lifecycle-check.mjs
@@ -41,6 +41,11 @@ assert.match(pageSource, /fetch\('\/api\/sandbox\/delete'/, 'destroy workflow mu
assert.match(pageSource, /refresh\(\{ force: true \}\)/, 'create and destroy workflows must force fresh inventory reads')
assert.match(pageSource, /refreshUntilSandboxVisible/, 'create workflow must wait for the new sandbox to appear in inventory')
assert.match(pageSource, /refreshUntilSandboxGone/, 'destroy workflow must wait for deleted sandboxes to leave inventory')
+assert.match(
+ pageSource,
+ /isDestroyMode \? \([\s\S]*