mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 01:52:28 +08:00
28 lines
790 B
TypeScript
28 lines
790 B
TypeScript
![]() |
import { defineConfig, devices } from '@playwright/test';
|
||
|
import { nxE2EPreset } from '@nx/playwright/preset';
|
||
|
|
||
|
require('dotenv').config({
|
||
|
path: __dirname + "/" + ".env"
|
||
|
});
|
||
|
|
||
|
// For CI, you may want to set BASE_URL to the deployed application.
|
||
|
const port = process.env['TRILIUM_PORT'];
|
||
|
|
||
|
/**
|
||
|
* See https://playwright.dev/docs/test-configuration.
|
||
|
*/
|
||
|
export default defineConfig({
|
||
|
...nxE2EPreset(__filename, { testDir: './src' }),
|
||
|
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
||
|
use: {
|
||
|
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
||
|
trace: 'on-first-retry',
|
||
|
},
|
||
|
projects: [
|
||
|
{
|
||
|
name: "chromium",
|
||
|
use: { ...devices["Desktop Chrome"] },
|
||
|
}
|
||
|
],
|
||
|
});
|