@@ -3,79 +3,26 @@ import dotenv from 'dotenv';
33
44dotenv . config ( ) ;
55
6- /**
7- * Read environment variables from file.
8- * https://github.com/motdotla/dotenv
9- */
10- // require('dotenv').config();
11-
126/**
137 * See https://playwright.dev/docs/test-configuration.
148 */
159export default defineConfig ( {
1610 testDir : 'tests/e2e' ,
1711 globalSetup : 'tests/e2e/global-setup.ts' ,
18- /* Run tests in files in parallel */
1912 fullyParallel : true ,
20- /* Fail the build on CI if you accidentally left test.only in the source code. */
2113 forbidOnly : ! ! process . env . CI ,
22- /* Retry on CI only */
2314 retries : process . env . CI ? 2 : 0 ,
24- /* Opt out of parallel tests on CI. */
2515 workers : process . env . CI ? 1 : undefined ,
26- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
2716 reporter : 'html' ,
28- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2917 use : {
30- /* Base URL to use in actions like `await page.goto('/')`. */
3118 baseURL : process . env . WP_BASE_URL ,
32-
33- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3419 trace : 'on-first-retry' ,
3520 } ,
3621
37- /* Configure projects for major browsers */
3822 projects : [
3923 {
4024 name : 'chromium' ,
4125 use : { ...devices [ 'Desktop Chrome' ] } ,
4226 } ,
43-
44- // {
45- // name: 'firefox',
46- // use: { ...devices['Desktop Firefox'] },
47- // },
48-
49- // {
50- // name: 'webkit',
51- // use: { ...devices['Desktop Safari'] },
52- // },
53-
54- /* Test against mobile viewports. */
55- // {
56- // name: 'Mobile Chrome',
57- // use: { ...devices['Pixel 5'] },
58- // },
59- // {
60- // name: 'Mobile Safari',
61- // use: { ...devices['iPhone 12'] },
62- // },
63-
64- /* Test against branded browsers. */
65- // {
66- // name: 'Microsoft Edge',
67- // use: { ...devices['Desktop Edge'], channel: 'msedge' },
68- // },
69- // {
70- // name: 'Google Chrome',
71- // use: { ...devices['Desktop Chrome'], channel: 'chrome' },
72- // },
7327 ] ,
74-
75- /* Run your local dev server before starting the tests */
76- // webServer: {
77- // command: 'npm run start',
78- // url: 'http://127.0.0.1:3000',
79- // reuseExistingServer: !process.env.CI,
80- // },
8128} ) ;
0 commit comments