Closes #590 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> * **Tests** * Enhanced test coverage for backup pattern handling and anchoring * Added end-to-end scenarios validating include patterns, exclusion patterns, and exclude-if-present functionality * **Refactor** * Updated pattern processing logic to improve relative path resolution for backup patterns * Improved asynchronous handling in backup initialization workflow <!-- end of auto-generated comment: release notes by coderabbit.ai -->
62 lines
1.2 KiB
TypeScript
62 lines
1.2 KiB
TypeScript
import "dotenv/config";
|
|
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: 0,
|
|
reporter: "html",
|
|
use: {
|
|
baseURL: `http://${process.env.SERVER_IP}:4096`,
|
|
video: "retain-on-failure",
|
|
trace: "retain-on-failure",
|
|
},
|
|
projects: [
|
|
{
|
|
name: "setup",
|
|
testMatch: /.*\.setup\.ts/,
|
|
workers: 1,
|
|
},
|
|
{
|
|
name: "chromium",
|
|
use: {
|
|
...devices["Desktop Chrome"],
|
|
storageState: "playwright/.auth/user.json",
|
|
launchOptions: {
|
|
args: ["--host-rules=MAP dex 127.0.0.1"],
|
|
},
|
|
},
|
|
dependencies: ["setup"],
|
|
},
|
|
|
|
// {
|
|
// name: "firefox",
|
|
// use: { ...devices["Desktop Firefox"] },
|
|
// },
|
|
//
|
|
// {
|
|
// name: "webkit",
|
|
// use: { ...devices["Desktop Safari"] },
|
|
// },
|
|
|
|
// {
|
|
// name: 'Mobile Chrome',
|
|
// use: { ...devices['Pixel 5'] },
|
|
// },
|
|
// {
|
|
// name: 'Mobile Safari',
|
|
// use: { ...devices['iPhone 12'] },
|
|
// },
|
|
|
|
/* Test against branded browsers. */
|
|
// {
|
|
// name: 'Microsoft Edge',
|
|
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
|
|
// },
|
|
// {
|
|
// name: 'Google Chrome',
|
|
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
|
|
// },
|
|
],
|
|
});
|