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.

Stabilize mobile workload geometry probe

rcourtmana65194de3afc
diff --git a/tests/integration/tests/04-mobile.spec.ts b/tests/integration/tests/04-mobile.spec.ts
index 46d8064f7b..77c7b91952 100644
--- a/tests/integration/tests/04-mobile.spec.ts
+++ b/tests/integration/tests/04-mobile.spec.ts
@@ -193,15 +193,7 @@ test.describe("Mobile viewport flows", () => {
const table = page.locator("table.workload-table--mobile");
await expect(table).toBeVisible({ timeout: 30_000 });
- const geometry = await page.evaluate(() => {
- const element = document.querySelector<HTMLTableElement>(
- "table.workload-table--mobile",
- );
- if (!element) {
- throw new Error(
- "Mobile workloads table disappeared before measurement",
- );
- }
+ const geometry = await table.evaluate((element) => {
const wrapper = element.parentElement;
return {
tableWidth: element.scrollWidth,