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 browser interactions

rcourtman0b6d1cdc1856
diff --git a/tests/integration/tests/04-mobile.spec.ts b/tests/integration/tests/04-mobile.spec.ts
index 108ba5bee7..46d8064f7b 100644
--- a/tests/integration/tests/04-mobile.spec.ts
+++ b/tests/integration/tests/04-mobile.spec.ts
@@ -219,16 +219,11 @@ test.describe("Mobile viewport flows", () => {
page,
}) => {
await page.goto("/proxmox/overview");
- await expect(
- page.getByPlaceholder(
- "Search VMs and LXCs by name, VMID, node, or status",
- ),
- ).toBeVisible({ timeout: 30_000 });
const primaryRail = page.locator('[data-mobile-nav-rail="primary"]');
const utilityRail = page.locator('[data-mobile-nav-rail="utility"]');
- await expect(primaryRail).toBeVisible();
- await expect(utilityRail).toBeVisible();
+ await expect(primaryRail).toBeVisible({ timeout: 30_000 });
+ await expect(utilityRail).toBeVisible({ timeout: 30_000 });
await expect
.poll(
@@ -325,12 +320,6 @@ test.describe("Mobile viewport flows", () => {
}) => {
await page.goto("/proxmox/overview");
- await expect(
- page.getByPlaceholder(
- "Search VMs and LXCs by name, VMID, node, or status",
- ),
- ).toBeVisible();
-
const tableWrapper = page
.locator("div.overflow-x-auto")
.filter({ has: page.locator("table") })
@@ -368,12 +357,6 @@ test.describe("Mobile viewport flows", () => {
}) => {
await page.goto("/proxmox/overview");
- await expect(
- page.getByPlaceholder(
- "Search VMs and LXCs by name, VMID, node, or status",
- ),
- ).toBeVisible();
-
const disclosure = page
.getByRole("button", { name: /^Expand details for / })
.first();
diff --git a/tests/integration/tests/38-vmware-ai-chat-mentions.spec.ts b/tests/integration/tests/38-vmware-ai-chat-mentions.spec.ts
index 7f848e3b11..287fe81f74 100644
--- a/tests/integration/tests/38-vmware-ai-chat-mentions.spec.ts
+++ b/tests/integration/tests/38-vmware-ai-chat-mentions.spec.ts
@@ -78,7 +78,7 @@ test.describe('VMware AI chat mentions', () => {
.filter({ hasText: /esxi-01\.lab\.local/ })
.first();
await expect(hostOption).toBeVisible({ timeout: 30_000 });
- await textarea.press('Enter');
+ await page.keyboard.press('Enter');
await expect(textarea).toHaveValue('@esxi-01.lab.local ');
// API-backed vSphere VMs use the same shared mention contract, carrying
@@ -91,7 +91,7 @@ test.describe('VMware AI chat mentions', () => {
.filter({ hasText: /warehouse-api-01/ })
.first();
await expect(vmOption).toBeVisible({ timeout: 30_000 });
- await textarea.press('Enter');
+ await page.keyboard.press('Enter');
await expect(textarea).toHaveValue('@warehouse-api-01 ');
expect(unexpectedVMwareRequests).toEqual([]);
diff --git a/tests/integration/tests/42-vmware-ai-chat-read-recovery.spec.ts b/tests/integration/tests/42-vmware-ai-chat-read-recovery.spec.ts
index e80d99f6c1..e12bd26ac3 100644
--- a/tests/integration/tests/42-vmware-ai-chat-read-recovery.spec.ts
+++ b/tests/integration/tests/42-vmware-ai-chat-read-recovery.spec.ts
@@ -74,11 +74,11 @@ test.describe('VMware AI chat read recovery', () => {
.filter({ hasText: /warehouse-api-01/ })
.first();
await expect(vmOption).toBeVisible({ timeout: 30_000 });
- await textarea.press('Enter');
+ await page.keyboard.press('Enter');
await expect(textarea).toHaveValue('@warehouse-api-01 ');
await textarea.fill('@warehouse-api-01 show me recent status');
- await textarea.press('Enter');
+ await page.keyboard.press('Enter');
// Chat turns ride the shared assistant transport (websocket-backed since
// the assistant modernization, so REST route interception cannot observe