Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -169,10 +169,6 @@ export function tenantSettingsAuditExportPath(dashboardPath: string): string {
|
||||
return tenantSettingsPath(dashboardPath, "audit-export", process.env.E2E_TENANT_AUDIT_EXPORT_PATH ?? "/app/settings/audit-export");
|
||||
}
|
||||
|
||||
export function tenantSettingsChatbotPath(dashboardPath: string): string {
|
||||
return tenantSettingsPath(dashboardPath, "chatbot", process.env.E2E_TENANT_CHATBOT_PATH ?? "/app/settings/chatbot");
|
||||
}
|
||||
|
||||
export function tenantRolesAndPermissionsPath(dashboardPath: string): string {
|
||||
return tenantSettingsPath(dashboardPath, "roles-and-permissions", process.env.E2E_TENANT_ROLES_AND_PERMISSIONS_PATH ?? "/app/settings/roles-and-permissions");
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { test, type Page, type Response } from "@playwright/test";
|
||||
import { encode } from "turbo-stream";
|
||||
|
||||
const SKIPPABLE_STATUSES = new Set([400, 403, 404]);
|
||||
const STRIPE_HOST_PATTERN = /(^|\.)stripe\.com$/u;
|
||||
const MOLLIE_HOST_PATTERN = /(^|\.)mollie\.com$/u;
|
||||
|
||||
/**
|
||||
* Wait until the client app has hydrated (`<html data-hydrated="true">`, set by
|
||||
@@ -157,12 +157,12 @@ export async function interceptCurrentRoutePost(
|
||||
return submittedPostData;
|
||||
}
|
||||
|
||||
export async function failOnStripeNetworkRequests(page: Page): Promise<void> {
|
||||
export async function failOnPaymentProviderNetworkRequests(page: Page): Promise<void> {
|
||||
await page.route("**/*", async (route) => {
|
||||
const request = route.request();
|
||||
const requestUrl = new URL(request.url());
|
||||
if (STRIPE_HOST_PATTERN.test(requestUrl.hostname)) {
|
||||
throw new Error(`Unexpected Stripe network request during E2E smoke: ${request.method()} ${request.url()}`);
|
||||
if (MOLLIE_HOST_PATTERN.test(requestUrl.hostname)) {
|
||||
throw new Error(`Unexpected payment provider network request during E2E smoke: ${request.method()} ${request.url()}`);
|
||||
}
|
||||
await route.fallback();
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user