mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-24 06:02:51 +03:00
6c2c7dcd48
- document folder - full-text search - blob storage - basic edgeless support Co-authored-by: tzhangchi <terry.zhangchi@outlook.com> Co-authored-by: QiShaoXuan <qishaoxuan777@gmail.com> Co-authored-by: DiamondThree <diamond.shx@gmail.com> Co-authored-by: MingLiang Wang <mingliangwang0o0@gmail.com> Co-authored-by: JimmFly <yangjinfei001@gmail.com> Co-authored-by: Yifeng Wang <doodlewind@toeverything.info> Co-authored-by: Himself65 <himself65@outlook.com> Co-authored-by: lawvs <18554747+lawvs@users.noreply.github.com> Co-authored-by: Qi <474021214@qq.com>
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import type { PlaywrightTestConfig } from '@playwright/test';
|
|
// import { devices } from '@playwright/test';
|
|
|
|
/**
|
|
* Read environment variables from file.
|
|
* https://github.com/motdotla/dotenv
|
|
*/
|
|
// require('dotenv').config();
|
|
|
|
/**
|
|
* See https://playwright.dev/docs/test-configuration.
|
|
*/
|
|
const config: PlaywrightTestConfig = {
|
|
testDir: './tests',
|
|
timeout: 30 * 1000,
|
|
use: {
|
|
browserName: 'chromium',
|
|
viewport: { width: 1440, height: 800 },
|
|
actionTimeout: 5 * 1000,
|
|
// Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer
|
|
// You can open traces locally(`npx playwright show-trace trace.zip`)
|
|
// or in your browser on [Playwright Trace Viewer](https://trace.playwright.dev/).
|
|
trace: 'on-first-retry',
|
|
// Record video only when retrying a test for the first time.
|
|
video: 'on-first-retry',
|
|
},
|
|
|
|
fullyParallel: true,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: process.env.CI ? 2 : 0,
|
|
workers: process.env.CI ? '100%' : undefined,
|
|
|
|
webServer: {
|
|
command: 'pnpm build && pnpm start -p 8080',
|
|
port: 8080,
|
|
timeout: 120 * 1000,
|
|
reuseExistingServer: !process.env.CI,
|
|
},
|
|
};
|
|
|
|
export default config;
|