Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -2,7 +2,7 @@ import { expect, test, type Locator, type Page } from "./utils/test";
import { getTenantCredentials, loginAsTenantUser, tenantSettingsAccountPath } from "./utils/auth";
import { expectNoCriticalA11yViolations } from "./utils/axe";
import { compactMobileViewport, expectNoHorizontalOverflow, narrowMobileViewport } from "./utils/mobile";
import { escapeRegExp, failOnStripeNetworkRequests, interceptCurrentRoutePost, postDataIncludesField, singleFetchActionError, skipIfUnavailable } from "./utils/navigation";
import { escapeRegExp, failOnPaymentProviderNetworkRequests, interceptCurrentRoutePost, postDataIncludesField, singleFetchActionError, skipIfUnavailable } from "./utils/navigation";
import { skipOrFailWhenE2eFixtureMissing, skipOrFailWhenE2eInputsMissing, skipWhenE2eOperatorOptInMissing } from "./utils/readiness";
const credentials = getTenantCredentials();
@@ -14,10 +14,10 @@ const requireSubscriptionSuccessE2e = process.env.E2E_REQUIRE_SUBSCRIPTION_SUCCE
test.describe("subscription settings smoke", () => {
test.beforeEach(async ({ page }) => {
await failOnStripeNetworkRequests(page);
await failOnPaymentProviderNetworkRequests(page);
});
test("renders billing surface without opening Stripe redirects", async ({ page }) => {
test("renders billing surface without opening payment provider redirects", async ({ page }) => {
skipOrFailWhenE2eInputsMissing(["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD", "E2E_TENANT_SUBSCRIPTION_PATH"], "Subscription smoke inputs not configured");
await loginAsTenantUser(page, credentials!);
@@ -35,14 +35,14 @@ test.describe("subscription settings smoke", () => {
const checkoutLink = page.locator('[data-ui-id="ui.subscription.checkout.link"]').first();
if ((await checkoutLink.count()) > 0) {
await expect(checkoutLink).toHaveAttribute("href", /\/subscribe\/[^/?#]+(?:[?#].*)?$/u);
await expect(checkoutLink).not.toHaveAttribute("href", /stripe\.com|^https?:\/\//u);
await expect(checkoutLink).not.toHaveAttribute("href", /mollie\.com|^https?:\/\//u);
}
await expectNoHorizontalOverflow(page);
await expectNoCriticalA11yViolations(page);
});
test("opens the tenant checkout catalog from subscription settings without triggering Stripe", async ({ page }) => {
test("opens the tenant checkout catalog from subscription settings without triggering a payment provider", async ({ page }) => {
skipOrFailWhenE2eInputsMissing(
["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD", "E2E_TENANT_SUBSCRIPTION_PATH"],
"Subscription checkout smoke inputs not configured"
@@ -203,14 +203,14 @@ test.describe("subscription settings smoke", () => {
expect(postDataIncludesField(submittedPostData.value, "csrf", /.+/u)).toBe(true);
await expect(page.getByRole("dialog").filter({ hasText: "E2E synthetic checkout failure" }).first()).toBeVisible({ timeout: 10_000 });
await expect(page).toHaveURL(/\/subscribe\/[^/?#]+(?:[?#].*)?$/u);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
test("renders checkout success return surface when strict operator opt-in is enabled", async ({ page }) => {
if (!requireSubscriptionSuccessE2e) {
skipWhenE2eOperatorOptInMissing(
"E2E_REQUIRE_SUBSCRIPTION_SUCCESS",
"subscription success return smoke requires an externally acquired Stripe checkout session path"
"subscription success return smoke requires an externally acquired payment checkout session path"
);
return;
}
@@ -260,19 +260,19 @@ test.describe("subscription settings smoke", () => {
await Promise.all([page.waitForURL(new RegExp(`${escapeRegExp(dashboardPath)}(?:[?#].*)?$`, "u")), dashboardLink.click()]);
await expectTenantDashboard(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
await page.goto(subscriptionHref ?? subscriptionPath, { waitUntil: "domcontentloaded" });
await expect(page).toHaveURL(/\/settings\/subscription(?:[?#].*)?$/u);
await expectActiveSubscriptionStateAffordances(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
test("reconciles checkout success state so it persists across reload and re-login", async ({ page }) => {
if (!requireSubscriptionSuccessE2e) {
skipWhenE2eOperatorOptInMissing(
"E2E_REQUIRE_SUBSCRIPTION_SUCCESS",
"subscription reconciliation followthrough requires an externally acquired Stripe checkout session path"
"subscription reconciliation followthrough requires an externally acquired payment checkout session path"
);
return;
}
@@ -319,18 +319,18 @@ test.describe("subscription settings smoke", () => {
// Follow the dashboard link from the checkout return surface.
await Promise.all([page.waitForURL(new RegExp(`${escapeRegExp(dashboardPath)}(?:[?#].*)?$`, "u")), dashboardLink.click()]);
await expectTenantDashboard(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
// Reconciled state must be readable on the subscription settings loader and survive a fresh reload.
await page.goto(subscriptionHref ?? subscriptionPath, { waitUntil: "domcontentloaded" });
await expect(page).toHaveURL(/\/settings\/subscription(?:[?#].*)?$/u);
await expectActiveSubscriptionStateAffordances(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
await page.reload({ waitUntil: "domcontentloaded" });
await expect(page).toHaveURL(/\/settings\/subscription(?:[?#].*)?$/u);
await expectActiveSubscriptionStateAffordances(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
// Reconciled state must persist across a full logout + re-login (fresh appData load).
await signOutTenantUser(page);
@@ -345,7 +345,7 @@ test.describe("subscription settings smoke", () => {
await skipIfUnavailable(page, reloginResponse, "Subscription settings path is not reachable in this environment");
await expect(page).toHaveURL(/\/settings\/subscription(?:[?#].*)?$/u);
await expectActiveSubscriptionStateAffordances(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
test("renders synthetic invalid checkout return fixture only when operator-enabled", async ({ page }) => {
@@ -391,7 +391,7 @@ test.describe("subscription settings smoke", () => {
await expectNoCriticalA11yViolations(page);
});
test("submits the billing portal action with CSRF without requiring Stripe", async ({ page }) => {
test("submits the billing portal action with CSRF without requiring Mollie", async ({ page }) => {
skipOrFailWhenE2eInputsMissing(
["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD", "E2E_TENANT_SUBSCRIPTION_PATH"],
"Subscription billing portal smoke inputs not configured"
@@ -444,7 +444,7 @@ test.describe("subscription settings smoke", () => {
await expect(portalButton).toBeFocused();
await expectNoHorizontalOverflow(page);
await expectNoCriticalA11yViolations(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
test("submits cancellation action contract with CSRF when cancellation controls are rendered", async ({ page }) => {
@@ -520,7 +520,7 @@ test.describe("subscription settings smoke", () => {
["E2E_TENANT_EMAIL", "E2E_TENANT_PASSWORD", "E2E_TENANT_SUBSCRIPTION_PATH"],
"Subscription cancellation keyboard smoke inputs not configured"
);
expect(process.env.STRIPE_SK ?? "").not.toMatch(/^sk_live_/u);
expect(process.env.MOLLIE_API_KEY ?? "").not.toMatch(/^live_/u);
await loginAsTenantUser(page, credentials!);
const response = await page.goto(subscriptionPath, { waitUntil: "domcontentloaded" });
@@ -547,14 +547,14 @@ test.describe("subscription settings smoke", () => {
await expect(dialog).toBeHidden();
await page.waitForTimeout(250);
expect(submittedPostData.value).toBeNull();
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
});
test.describe("subscription settings mobile smoke", () => {
test.use({ viewport: narrowMobileViewport, isMobile: true, hasTouch: true });
test.beforeEach(async ({ page }) => {
await failOnStripeNetworkRequests(page);
await failOnPaymentProviderNetworkRequests(page);
});
test("keeps subscription controls reachable on mobile", async ({ page }) => {
@@ -654,14 +654,14 @@ test.describe("subscription settings mobile smoke", () => {
await Promise.all([page.waitForURL(new RegExp(`${escapeRegExp(dashboardPath)}(?:[?#].*)?$`, "u")), dashboardLink.tap()]);
await expectTenantDashboard(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
});
test.describe("subscription settings compact mobile smoke", () => {
test.use({ viewport: compactMobileViewport, isMobile: true, hasTouch: true });
test.beforeEach(async ({ page }) => {
await failOnStripeNetworkRequests(page);
await failOnPaymentProviderNetworkRequests(page);
});
test("keeps account settings, subscription settings, and checkout catalog usable at 320px", async ({ page }) => {
@@ -814,7 +814,7 @@ test.describe("subscription settings compact mobile smoke", () => {
await expect(portalButton).toBeEnabled();
await expectNoHorizontalOverflow(page);
await expectNoCriticalA11yViolations(page);
expect(page.url()).not.toMatch(/stripe\.com/u);
expect(page.url()).not.toMatch(/mollie\.com/u);
});
});