mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-19 10:33:29 +00:00
Stabilize mobile browser interactions
This commit is contained in:
parent
eeab775445
commit
0b6d1cdc18
3 changed files with 6 additions and 23 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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([]);
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue