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
Authenticate the self-hosted billing and upgrade-return flows
rcourtmanc9c48495baed
diff --git a/tests/integration/tests/54-monitored-system-billing-focus.spec.ts b/tests/integration/tests/54-monitored-system-billing-focus.spec.tsindex 443674eb5d..1cad413e1c 100644--- a/tests/integration/tests/54-monitored-system-billing-focus.spec.ts+++ b/tests/integration/tests/54-monitored-system-billing-focus.spec.ts@@ -1,5 +1,6 @@import { test, expect, type Page } from "@playwright/test";import { preferredPlaywrightRouteBaseURL } from "./runtime-defaults";+import { ensureAuthenticated } from "./helpers";const DEV_SERVER_URL = preferredPlaywrightRouteBaseURL();@@ -246,6 +247,7 @@ async function configureMonitoredSystemBillingFixtures(}async function openSelfHostedGeneralSettings(page: Page) {+ await ensureAuthenticated(page);await page.goto(`${DEV_SERVER_URL}/settings/system-general`, {waitUntil: "domcontentloaded",});@@ -272,6 +274,7 @@ test.describe("Monitored-system billing focus", () => {page.getByRole("link", { name: "Upgrade to add more" }),).toHaveCount(0);+ await ensureAuthenticated(page);await page.goto(`${DEV_SERVER_URL}/settings/system/billing/plan`, {waitUntil: "domcontentloaded",});diff --git a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts b/tests/integration/tests/55-self-hosted-upgrade-return.spec.tsindex 601f5ea526..0d3c200942 100644--- a/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts+++ b/tests/integration/tests/55-self-hosted-upgrade-return.spec.ts@@ -6,6 +6,7 @@ import {type Route,} from "@playwright/test";import { preferredPlaywrightRouteBaseURL } from "./runtime-defaults";+import { ensureAuthenticated } from "./helpers";const DEV_SERVER_URL = preferredPlaywrightRouteBaseURL();const PURCHASE_START_PATH = "/auth/license-purchase-start";@@ -451,6 +452,7 @@ async function configureBillingFixtures(}async function openMonitoredSystemUpgradeArrival(page: Page) {+ await ensureAuthenticated(page);await page.goto(`${DEV_SERVER_URL}/settings/system/billing/plan?intent=self_hosted_plan`, {waitUntil: "domcontentloaded",});@@ -511,6 +513,7 @@ test.describe("Self-hosted upgrade return flow", () => {.poll(() => purchaseStartURL).toBe(`${PURCHASE_START_URL}?feature=self_hosted_plan`);+ await ensureAuthenticated(page);await page.goto(buildPortalHandoffUrl(), { waitUntil: "domcontentloaded" });await expect(page.getByRole("heading", { name: "Pulse Account" }),@@ -565,6 +568,7 @@ test.describe("Self-hosted upgrade return flow", () => {await openMonitoredSystemUpgradeArrival(page);await page.getByRole("link", { name: "Compare plans" }).click();+ await ensureAuthenticated(page);await page.goto(buildPortalHandoffUrl(), { waitUntil: "domcontentloaded" });await expect(page).toHaveURL(FINAL_BILLING_URL);@@ -601,6 +605,7 @@ test.describe("Self-hosted upgrade return flow", () => {const comparePlansLink = page.getByRole("link", { name: "Compare plans" });await comparePlansLink.click();+ await ensureAuthenticated(page);await page.goto(buildPortalHandoffUrl(), { waitUntil: "domcontentloaded" });await expect(page).toHaveURL(FINAL_RESTARTABLE_BILLING_URL);@@ -639,6 +644,7 @@ test.describe("Self-hosted upgrade return flow", () => {await openMonitoredSystemUpgradeArrival(page);await page.getByRole("link", { name: "Compare plans" }).click();+ await ensureAuthenticated(page);await page.goto(buildPortalHandoffUrl(), { waitUntil: "domcontentloaded" });await expect(page).toHaveURL(FINAL_BILLING_URL);@@ -685,6 +691,7 @@ test.describe("Self-hosted upgrade return flow", () => {await openMonitoredSystemUpgradeArrival(page);await page.getByRole("link", { name: "Compare plans" }).click();+ await ensureAuthenticated(page);await page.goto(buildPortalHandoffUrl(), { waitUntil: "domcontentloaded" });await expect(page).toHaveURL(EXPIRED_BILLING_URL);@@ -723,6 +730,7 @@ test.describe("Self-hosted upgrade return flow", () => {await openMonitoredSystemUpgradeArrival(page);await page.getByRole("link", { name: "Compare plans" }).click();+ await ensureAuthenticated(page);await page.goto(buildPortalHandoffUrl(), { waitUntil: "domcontentloaded" });await expect(page).toHaveURL(FAILED_BILLING_URL);