Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Open drawer Details in the hybrid memory browser spec

rcourtmana59f6eb97a86
diff --git a/tests/integration/tests/86-hybrid-memory-browser.spec.ts b/tests/integration/tests/86-hybrid-memory-browser.spec.ts
index c9b26c6644..b4ff2dbb55 100644
--- a/tests/integration/tests/86-hybrid-memory-browser.spec.ts
+++ b/tests/integration/tests/86-hybrid-memory-browser.spec.ts
@@ -208,6 +208,16 @@ test("hybrid guest memory follows canonical snapshots in the browser", async ({
send();
await expect(memoryCell).toContainText("0%");
await expect(memoryCell).not.toContainText("N/A");
+ // The Memory section sits in the drawer's Details disclosure, closed by
+ // default. Open it once, as a reader would, before judging its geometry.
+ const technicalDetails = drawer.getByTestId("guest-technical-details");
+ if (
+ !(await technicalDetails.evaluate(
+ (element) => (element as HTMLDetailsElement).open,
+ ))
+ ) {
+ await technicalDetails.locator("summary").click();
+ }
// Centre the recovered details above the fixed narrow-screen navigation.
await memoryDetails.evaluate((element) =>
element.scrollIntoView({ block: "center", inline: "nearest" }),