|
1 |
| -import { defineConfig, devices } from '@playwright/test'; |
| 1 | +import { defineConfig, devices } from "@playwright/test"; |
2 | 2 |
|
3 | 3 | /**
|
4 | 4 | * Read environment variables from file.
|
5 | 5 | * https://github.com/motdotla/dotenv
|
6 | 6 | */
|
7 | 7 | // require('dotenv').config();
|
8 | 8 |
|
9 |
| -/** |
| 9 | +/**q |
10 | 10 | * See https://playwright.dev/docs/test-configuration.
|
11 | 11 | */
|
12 | 12 | export default defineConfig({
|
13 |
| - testDir: './test/e2e-playwright', |
| 13 | + testDir: "./test/e2e-playwright", |
14 | 14 | /* Run tests in files in parallel */
|
15 |
| - fullyParallel: true, |
| 15 | + fullyParallel: false, |
16 | 16 | /* Fail the build on CI if you accidentally left test.only in the source code. */
|
17 | 17 | forbidOnly: !!process.env.CI,
|
18 | 18 | /* Retry on CI only */
|
19 |
| - retries: process.env.CI ? 2 : 0, |
| 19 | + retries: 0, |
20 | 20 | /* Opt out of parallel tests on CI. */
|
21 |
| - workers: process.env.CI ? 1 : undefined, |
| 21 | + workers: undefined, |
22 | 22 | /* Reporter to use. See https://playwright.dev/docs/test-reporters */
|
23 |
| - reporter: 'html', |
| 23 | + reporter: "html", |
24 | 24 | /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
|
25 | 25 | use: {
|
26 | 26 | /* Base URL to use in actions like `await page.goto('/')`. */
|
27 | 27 | // baseURL: 'http://127.0.0.1:3000',
|
28 | 28 |
|
29 | 29 | /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
|
30 |
| - trace: 'on-first-retry', |
| 30 | + trace: "on-first-retry", |
31 | 31 | },
|
32 | 32 |
|
33 | 33 | /* Configure projects for major browsers */
|
34 | 34 | projects: [
|
35 | 35 | {
|
36 |
| - name: 'chromium', |
37 |
| - use: { ...devices['Desktop Chrome'] }, |
| 36 | + name: "chromium", |
| 37 | + use: { ...devices["Desktop Chrome"] }, |
38 | 38 | },
|
39 | 39 |
|
40 |
| - { |
41 |
| - name: 'firefox', |
42 |
| - use: { ...devices['Desktop Firefox'] }, |
43 |
| - }, |
| 40 | + // { |
| 41 | + // name: 'firefox', |
| 42 | + // use: { ...devices['Desktop Firefox'] }, |
| 43 | + // }, |
44 | 44 |
|
45 |
| - { |
46 |
| - name: 'webkit', |
47 |
| - use: { ...devices['Desktop Safari'] }, |
48 |
| - }, |
| 45 | + // { |
| 46 | + // name: 'webkit', |
| 47 | + // use: { ...devices['Desktop Safari'] }, |
| 48 | + // }, |
49 | 49 |
|
50 | 50 | /* Test against mobile viewports. */
|
51 | 51 | // {
|
|
0 commit comments