11import { defineConfig , devices } from "@playwright/test" ;
22
3- /**
4- * Read environment variables from file.
5- * https://github.com/motdotla/dotenv
6- */
7- // require('dotenv').config();
8-
93/**
104 * See https://playwright.dev/docs/test-configuration.
115 */
@@ -26,7 +20,7 @@ export default defineConfig({
2620 /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2721 use : {
2822 /* Base URL to use in actions like `await page.goto('/')`. */
29- // baseURL: ' http://127.0.0.1:3000' ,
23+ baseURL : " http://localhost:8080" ,
3024
3125 /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3226 trace : "on-first-retry" ,
@@ -38,42 +32,5 @@ export default defineConfig({
3832 name : "chromium" ,
3933 use : { ...devices [ "Desktop Chrome" ] } ,
4034 } ,
41-
42- // {
43- // name: "firefox",
44- // use: { ...devices["Desktop Firefox"] },
45- // },
46-
47- // {
48- // name: "webkit",
49- // use: { ...devices["Desktop Safari"] },
50- // },
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- // },
7135 ] ,
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- // },
7936} ) ;
0 commit comments