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.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Stabilize populated browser fixtures
rcourtman05c44f199faf
diff --git a/tests/integration/tests/04-mobile.spec.ts b/tests/integration/tests/04-mobile.spec.tsindex 3b8df9ee36..299ca055c9 100644--- a/tests/integration/tests/04-mobile.spec.ts+++ b/tests/integration/tests/04-mobile.spec.ts@@ -1,5 +1,5 @@import { test, expect, devices } from "@playwright/test";-import { ensureAuthenticated } from "./helpers";+import { ensureAuthenticated, setMockMode } from "./helpers";const getViewportWidth = async (page: import("@playwright/test").Page,@@ -189,6 +189,8 @@ test.describe("Mobile viewport flows", () => {test("shared Workloads table preserves its mobile width and scroll contract", async ({page,}) => {+ test.setTimeout(240_000);+ await setMockMode(page, true);await page.goto("/proxmox/workloads");const table = page.locator("table.workload-table--mobile");diff --git a/tests/integration/tests/38-vmware-ai-chat-mentions.spec.ts b/tests/integration/tests/38-vmware-ai-chat-mentions.spec.tsindex 287fe81f74..0aabe63507 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 page.keyboard.press('Enter');+ await hostOption.click();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 page.keyboard.press('Enter');+ await vmOption.click();await expect(textarea).toHaveValue('@warehouse-api-01 ');expect(unexpectedVMwareRequests).toEqual([]);diff --git a/tests/integration/tests/59-workloads-column-layout.spec.ts b/tests/integration/tests/59-workloads-column-layout.spec.tsindex 7276210a1e..5b37e67099 100644--- a/tests/integration/tests/59-workloads-column-layout.spec.ts+++ b/tests/integration/tests/59-workloads-column-layout.spec.ts@@ -1,6 +1,11 @@import { expect, test as base, type Page } from '@playwright/test';-import { getMockMode, setMockMode } from './helpers';+import {+ ensureAuthenticated,+ getMockMode,+ setMockMode,+ waitForDefaultMockRuntimeReady,+} from './helpers';type ColumnHeaderMetric = {colId: string | null;@@ -45,12 +50,15 @@ test.use({});async function ensureMockModeEnabled(page: Page): Promise<void> {+ await ensureAuthenticated(page);const state = await getMockMode(page);if (mockModeWasEnabled === null) {mockModeWasEnabled = state.enabled;}if (!state.enabled) {await setMockMode(page, true);+ } else {+ await waitForDefaultMockRuntimeReady(page);}}@@ -118,6 +126,8 @@ async function readWorkloadsColumnLayout(page: Page): Promise<WorkloadsColumnLay}test.describe.serial('Workloads column layout', () => {+ test.setTimeout(240_000);+test.afterAll(async ({ browser }) => {if (mockModeWasEnabled === null) {return;diff --git a/tests/integration/tests/77-msp-isolation.spec.ts b/tests/integration/tests/77-msp-isolation.spec.tsindex b9ad228c28..54cad1388c 100644--- a/tests/integration/tests/77-msp-isolation.spec.ts+++ b/tests/integration/tests/77-msp-isolation.spec.ts@@ -7,7 +7,7 @@ import {apiRequest,createOrg,deleteOrg,- ensureAuthenticated,+ ensureSessionAuthenticated,isMultiTenantEnabled,} from './helpers';@@ -88,7 +88,7 @@ test.describe('MSP isolation E2E', () => {});test('org-bound token is scoped away from other orgs and the default org', async ({ page }) => {- await ensureAuthenticated(page);+ await ensureSessionAuthenticated(page);const mtEnabled = await isMultiTenantEnabled(page);test.skip(!mtEnabled, 'Multi-tenant feature not enabled in this environment');@@ -147,7 +147,7 @@ test.describe('MSP isolation E2E', () => {});test('client org webhook delivery: instance-wide allowlist, tenant stamp, HMAC signature', async ({ page }) => {- await ensureAuthenticated(page);+ await ensureSessionAuthenticated(page);const mtEnabled = await isMultiTenantEnabled(page);test.skip(!mtEnabled, 'Multi-tenant feature not enabled in this environment');@@ -232,7 +232,7 @@ test.describe('MSP isolation E2E', () => {).toBe(200);- await ensureAuthenticated(page);+ await ensureSessionAuthenticated(page);await fire();expect(deliveries.length).toBe(2);const second = deliveries[1];diff --git a/tests/integration/tests/helpers.ts b/tests/integration/tests/helpers.tsindex ec7b0c1794..6f59e3ad82 100644--- a/tests/integration/tests/helpers.ts+++ b/tests/integration/tests/helpers.ts@@ -1171,7 +1171,7 @@ const resourceHasSource = (source: string,): boolean => resource.sources?.includes(source) === true;-async function waitForDefaultMockRuntimeReady(page: Page): Promise<void> {+export async function waitForDefaultMockRuntimeReady(page: Page): Promise<void> {if (!requiresDefaultMockRuntimeReadiness()) {return;}@@ -1207,6 +1207,18 @@ async function waitForDefaultMockRuntimeReady(page: Page): Promise<void> {resource.name === "tank" &&resourceHasSource(resource, "truenas"),) &&+ resources.some(+ (resource) =>+ (resource.type === "vm" ||+ resource.type === "system-container") &&+ resourceHasSource(resource, "proxmox"),+ ) &&+ resources.some(+ (resource) =>+ resource.name === "esxi-01.lab.local" &&+ resource.type === "agent" &&+ resourceHasSource(resource, "vmware"),+ ) &&resources.some((resource) => resource.type === "docker-host") &&resources.some((resource) => resource.type === "pbs") &&resources.some((resource) => resource.type === "pmg") &&