Files
formbricks/playwright.service.config.ts
2025-10-06 05:02:51 +00:00

25 lines
1.1 KiB
TypeScript

import { ServiceOS, getServiceConfig } from "@azure/microsoft-playwright-testing";
import { defineConfig } from "@playwright/test";
import config from "./playwright.config";
/* Learn more about service configuration at https://aka.ms/mpt/config */
export default defineConfig(
config,
getServiceConfig(config, {
exposeNetwork: "<loopback>",
timeout: 120000, // Increased timeout for cloud environment with network latency
os: ServiceOS.LINUX,
useCloudHostedBrowsers: true, // Set to false if you want to only use reporting and not cloud hosted browsers
}),
{
/*
Playwright Testing service reporter is added by default.
This will override any reporter options specified in the base playwright config.
If you are using more reporters, please update your configuration accordingly.
*/
reporter: [["list"], ["@azure/microsoft-playwright-testing/reporter"]],
retries: 2, // Always retry in cloud environment due to potential network/timing issues
maxFailures: undefined, // Don't stop on first failure to avoid cascading shutdowns with high parallelism
}
);