forked from VolodymyrBaydalka/docxjs
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplaywright.config.ts
More file actions
37 lines (36 loc) · 1.16 KB
/
Copy pathplaywright.config.ts
File metadata and controls
37 lines (36 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { defineConfig } from '@playwright/test';
// Playwright is configured to drive the system Chrome install (channel: 'chrome')
// because the Playwright-managed Chromium bundle does not yet publish binaries
// for ubuntu26.04 on this host. The tests themselves are plain DOM/fetch and
// don't depend on anything Chrome-specific.
export default defineConfig({
testDir: './tests',
testMatch: ['**/*.spec.ts', '**/*.spec.js'],
// Conformance and interop suites have their own configs; keep the
// smoke suite (`npm test`) scoped to tests/render-test & friends.
testIgnore: ['**/tests/conformance/**', '**/tests/interop/**'],
fullyParallel: true,
retries: 0,
workers: 4,
reporter: 'list',
use: {
baseURL: `http://localhost:${process.env.PORT || 8765}`,
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chrome',
use: {
browserName: 'chromium',
channel: 'chrome',
},
},
],
webServer: {
command: 'node scripts/dev-server.mjs',
url: `http://localhost:${process.env.PORT || 8765}/tests/harness.html`,
reuseExistingServer: !process.env.CI,
timeout: 30_000,
},
});