mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-27 01:48:45 +00:00
2b3720b4a2
* Consolidate Build & Test CI
* Add missing workflow dependency
* Fix artifact name clash
* Fix playwright config
* Fix playwright_ew job
* Fix ed tests
* Fix playwright tags
* Iterate
* Fix file reads
* Fix sample-files paths
* Fix PW_TAG
* Fix blob report paths
* Delint
* Fix build-and-test.yaml
* Iterate
* Fix consentHomeserver.ts
* Simplify
* Iterate
* Delint
* Iterate
* Iterate
* Iterate
* Specify shell
* Simplify
* Delete apps/web/playwright/sample-files/index.ts
* Discard changes to apps/web/playwright/sample-files/index.ts
* Exclude playwright-common from coverage gate
* Attempt to speed up arm64 desktop test
* Revert "Attempt to speed up arm64 desktop test"
This reverts commit 8fa8ff0c78.
* Iterate
* Fix cache key
* Accept python or python3 as per node-gyp
* Accept python or python3 as per node-gypd
* Exclude apps/desktop/hak from coverage gate
28 lines
948 B
TypeScript
28 lines
948 B
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";
|
|
|
|
export default defineConfig({
|
|
projects: [{ name: "Desktop" }],
|
|
tag: process.env.PW_TAG ? `@${process.env.PW_TAG}` : 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,
|
|
});
|