Files
upstream-krayin/packages/Webkul/Admin/tests/e2e-pw/playwright.config.ts
upstream-mirror 135ffdb085
Some checks failed
Admin | Playwright Tests / Admin | Playwright Tests | Shard 1 Of 6 (push) Failing after 37s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 2 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 4 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 6 Of 6 (push) Failing after 6s
Linting Tests / PHP 8.3 test on ubuntu-latest (push) Failing after 5s
CI / PHP 8.3 test on ubuntu-latest (push) Failing after 6s
Skills Consistency / validate-skills (push) Successful in 10s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 3 Of 6 (push) Failing after 7s
Admin | Playwright Tests / Admin | Playwright Tests | Shard 5 Of 6 (push) Failing after 6s
snapshot of https://github.com/krayin/laravel-crm.git (2.2, 2026-09-18; blobs > 131072B omitted)
2026-09-18 04:37:41 +05:00

57 lines
1.2 KiB
TypeScript

import { defineConfig, devices } from "@playwright/test";
import dotenv from "dotenv";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
export const TESTS_ROOT_PATH = __dirname;
export const STATE_DIR_PATH = `${ TESTS_ROOT_PATH }/.state/`;
export const ADMIN_AUTH_STATE_PATH = `${ STATE_DIR_PATH }/admin-auth.json`;
dotenv.config({ path: path.resolve(__dirname, "../../../../../.env") });
export default defineConfig({
testDir: "./tests",
timeout: 120 * 1000,
expect: { timeout: 20 * 1000 },
outputDir: "./test-results",
fullyParallel: false,
workers: 1,
forbidOnly: !!process.env.CI,
retries: 0,
reportSlowTests: null,
reporter: [
[
"html",
{
outputFolder: "./playwright-report",
},
],
],
use: {
baseURL: `${process.env.APP_URL}/`.replace(/\/+$/, "/"),
screenshot: { mode: "only-on-failure", fullPage: true },
video: "retain-on-failure",
trace: "retain-on-failure",
},
projects: [
{
name: "chromium",
use: { ...devices["Desktop Chrome"] },
},
],
});