Some checks failed
Build and Test / fetch (push) Failing after 2m11s
Build and Test / Windows (arm64) (push) Has been skipped
Build and Test / Windows (ia32) (push) Has been skipped
Static Analysis / i18n Check (push) Failing after 0s
Build and Test / Windows (x64) (push) Has been skipped
Build and Test / Linux (amd64) (sqlcipher: static) (push) Has been skipped
Build and Test / Linux (amd64) (sqlcipher: system) (push) Has been skipped
Build and Test / Linux (arm64) (sqlcipher: static) (push) Has been skipped
Build and Test / Linux (arm64) (sqlcipher: system) (push) Has been skipped
Build and Test / macOS (push) Has been skipped
Sync labels / sync-labels (push) Failing after 1s
Build and Deploy / prepare (push) Failing after 2m15s
Build and Deploy / Windows arm64 (push) Has been skipped
Build and Deploy / Windows x64 (push) Has been skipped
Build and Deploy / macOS (push) Has been skipped
Build and Deploy / Linux amd64 (sqlcipher static) (push) Has been skipped
Build and Deploy / Linux arm64 (sqlcipher static) (push) Has been skipped
Build and Test / tests-done (push) Has been cancelled
Static Analysis / Typescript Syntax Check (push) Has been cancelled
Static Analysis / ESLint (push) Has been cancelled
Static Analysis / Workflow Lint (push) Has been cancelled
Static Analysis / Analyse Dead Code (push) Has been cancelled
Close stale PRs / close (push) Has been cancelled
Build and Deploy / ${{ needs.prepare.outputs.deploy == 'true' && 'Deploy' || 'Deploy (dry-run)' }} (push) Has been cancelled
Build and Deploy / Deploy builds to ESS (push) Has been cancelled
44 lines
1.3 KiB
TypeScript
44 lines
1.3 KiB
TypeScript
/*
|
|
Copyright 2024 New Vector Ltd.
|
|
Copyright 2023 The Matrix.org Foundation C.I.C.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only OR GPL-3.0-only OR LicenseRef-Element-Commercial
|
|
Please see LICENSE files in the repository root for full details.
|
|
*/
|
|
|
|
import { defineConfig } from "@playwright/test";
|
|
|
|
const projects = [
|
|
"macos",
|
|
"win-x64",
|
|
"win-ia32",
|
|
"win-arm64",
|
|
"linux-amd64-sqlcipher-system",
|
|
"linux-amd64-sqlcipher-static",
|
|
"linux-arm64-sqlcipher-system",
|
|
"linux-arm64-sqlcipher-static",
|
|
];
|
|
|
|
export default defineConfig({
|
|
// Allows the GitHub action to specify a project name (OS + arch) for the combined report to make sense
|
|
// workaround for https://github.com/microsoft/playwright/issues/33521
|
|
projects: process.env.CI
|
|
? projects.map((name) => ({
|
|
name,
|
|
}))
|
|
: undefined,
|
|
use: {
|
|
viewport: { width: 1280, height: 720 },
|
|
video: "retain-on-failure",
|
|
trace: "on-first-retry",
|
|
},
|
|
testDir: "playwright/e2e",
|
|
outputDir: "playwright/test-results",
|
|
workers: 1,
|
|
retries: process.env.CI ? 2 : 0,
|
|
reporter: process.env.CI ? [["blob"], ["github"]] : [["html", { outputFolder: "playwright/html-report" }]],
|
|
snapshotDir: "playwright/snapshots",
|
|
snapshotPathTemplate: "{snapshotDir}/{testFilePath}/{arg}-{platform}{ext}",
|
|
timeout: 30 * 1000,
|
|
});
|