@yuantest/playwright - v1.2.1
    正在准备搜索索引...

    接口 YuanTestConfigFile

    interface YuanTestConfigFile {
        version?: string;
        testDir?: string;
        outputDir?: string;
        baseURL?: string;
        retries?: number;
        timeout?: number;
        workers?: number;
        shards?: number;
        browsers?: BrowserType[];
        reporters?: string[];
        headers?: Record<string, string>;
        flakyThreshold?: number;
        isolateFlaky?: boolean;
        traces?: {
            enabled?: boolean;
            mode?: "off" | "on" | "retain-on-failure" | "on-first-retry";
        };
        artifacts?: {
            enabled?: boolean;
            screenshots?: "off"
            | "on"
            | "only-on-failure";
            videos?: "off" | "on" | "retain-on-failure" | "on-first-retry";
        };
        visualTesting?: {
            enabled?: boolean;
            threshold?: number;
            maxDiffPixels?: number;
            updateSnapshots?: boolean;
        };
        annotations?: {
            enabled?: boolean;
            respectSkip?: boolean;
            respectOnly?: boolean;
            respectFail?: boolean;
            respectSlow?: boolean;
            respectFixme?: boolean;
        };
        tags?: { enabled?: boolean; include?: string[]; exclude?: string[] };
        environmentTag?: string;
        processTimeout?: number;
        htmlReport?: boolean;
        dashboard?: { port?: number; outputDir?: string; dataDir?: string };
        customErrorPatterns?: {
            id: string;
            category:
                | "unknown"
                | "assertion"
                | "timeout"
                | "network"
                | "selector"
                | "frame"
                | "auth";
            name: string;
            description: string;
            regex: string[];
            rootCauseTemplate: { zh: string; en: string };
            suggestionsTemplate: { zh: string[]; en: string[] };
            docLinks?: { title: string; url: string }[];
        }[];
    }
    索引

    属性

    version?: string
    testDir?: string
    outputDir?: string
    baseURL?: string
    retries?: number
    timeout?: number
    workers?: number
    shards?: number
    browsers?: BrowserType[]
    reporters?: string[]
    headers?: Record<string, string>
    flakyThreshold?: number
    isolateFlaky?: boolean
    traces?: {
        enabled?: boolean;
        mode?: "off" | "on" | "retain-on-failure" | "on-first-retry";
    }
    artifacts?: {
        enabled?: boolean;
        screenshots?: "off" | "on" | "only-on-failure";
        videos?: "off" | "on" | "retain-on-failure" | "on-first-retry";
    }
    visualTesting?: {
        enabled?: boolean;
        threshold?: number;
        maxDiffPixels?: number;
        updateSnapshots?: boolean;
    }
    annotations?: {
        enabled?: boolean;
        respectSkip?: boolean;
        respectOnly?: boolean;
        respectFail?: boolean;
        respectSlow?: boolean;
        respectFixme?: boolean;
    }
    tags?: { enabled?: boolean; include?: string[]; exclude?: string[] }
    environmentTag?: string
    processTimeout?: number

    进程级超时(毫秒),0 表示不限制

    htmlReport?: boolean
    dashboard?: { port?: number; outputDir?: string; dataDir?: string }
    customErrorPatterns?: {
        id: string;
        category:
            | "unknown"
            | "assertion"
            | "timeout"
            | "network"
            | "selector"
            | "frame"
            | "auth";
        name: string;
        description: string;
        regex: string[];
        rootCauseTemplate: { zh: string; en: string };
        suggestionsTemplate: { zh: string[]; en: string[] };
        docLinks?: { title: string; url: string }[];
    }[]