|
1 | 1 | import { defineConfig, devices } from '@playwright/test';
|
2 | 2 |
|
3 |
| -/** |
4 |
| - * Read environment variables from file. |
5 |
| - * https://github.com/motdotla/dotenv |
6 |
| - */ |
7 |
| -// import dotenv from 'dotenv'; |
8 |
| -// import path from 'path'; |
9 |
| -// dotenv.config({ path: path.resolve(__dirname, '.env') }); |
10 |
| - |
11 |
| -/** |
12 |
| - * See https://playwright.dev/docs/test-configuration. |
13 |
| - */ |
14 | 3 | export default defineConfig({
|
15 |
| - testDir: './__tests__', |
| 4 | + testDir: './__tests__/e2e', |
16 | 5 | /* Run tests in files in parallel */
|
17 | 6 | fullyParallel: true,
|
18 | 7 | /* Fail the build on CI if you accidentally left test.only in the source code. */
|
@@ -48,32 +37,5 @@ export default defineConfig({
|
48 | 37 | name: 'webkit',
|
49 | 38 | use: { ...devices['Desktop Safari'] },
|
50 | 39 | },
|
51 |
| - |
52 |
| - /* Test against mobile viewports. */ |
53 |
| - // { |
54 |
| - // name: 'Mobile Chrome', |
55 |
| - // use: { ...devices['Pixel 5'] }, |
56 |
| - // }, |
57 |
| - // { |
58 |
| - // name: 'Mobile Safari', |
59 |
| - // use: { ...devices['iPhone 12'] }, |
60 |
| - // }, |
61 |
| - |
62 |
| - /* Test against branded browsers. */ |
63 |
| - // { |
64 |
| - // name: 'Microsoft Edge', |
65 |
| - // use: { ...devices['Desktop Edge'], channel: 'msedge' }, |
66 |
| - // }, |
67 |
| - // { |
68 |
| - // name: 'Google Chrome', |
69 |
| - // use: { ...devices['Desktop Chrome'], channel: 'chrome' }, |
70 |
| - // }, |
71 | 40 | ],
|
72 |
| - |
73 |
| - /* Run your local dev server before starting the tests */ |
74 |
| - // webServer: { |
75 |
| - // command: 'npm run start', |
76 |
| - // url: 'http://127.0.0.1:3000', |
77 |
| - // reuseExistingServer: !process.env.CI, |
78 |
| - // }, |
79 | 41 | });
|
0 commit comments