diff --git a/package.json b/package.json index 674c3a7011..d800820788 100644 --- a/package.json +++ b/package.json @@ -43,14 +43,14 @@ "test:e2e:build": "vite build --config test/e2e/vite.config.mjs", "test:e2e:dev": "vite --config test/e2e/vite.config.mjs -l info", "test:e2e:run": "cross-env VITEST_ENV=chromium vitest --project e2e", - "test:e2e:server": "serve test/e2e -p 5001", + "test:e2e:server": "serve test/e2e -p 5173", "test:karma": "cross-env NODE_ENV=test karma start test/karma.conf.js", "test:karma:profile": "cross-env NODE_ENV=test karma start test/karma.conf.profile.js", "test:regressions": "cross-env NODE_ENV=production pnpm test:regressions:build && concurrently --success first --kill-others \"pnpm test:regressions:run\" \"pnpm test:regressions:server\"", "test:regressions:build": "vite build --config test/regressions/vite.config.mjs", "test:regressions:dev": "vite --config test/regressions/vite.config.mjs", "test:regressions:run": "cross-env VITEST_ENV=chromium vitest --project regressions", - "test:regressions:server": "serve test/regressions -p 5001", + "test:regressions:server": "serve test/regressions -p 5173", "test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.{js,ts,tsx}' 'docs/**/*.test.{js,ts,tsx}'", "test:jsdom": "cross-env NODE_ENV=test VITEST_ENV=jsdom vitest --project @base-ui-components/react --project docs", "test:chromium": "cross-env NODE_ENV=test VITEST_ENV=chromium vitest --project @base-ui-components/react --project docs", diff --git a/test/README.md b/test/README.md index 0304aaf8af..c26ee2aa0c 100644 --- a/test/README.md +++ b/test/README.md @@ -200,7 +200,7 @@ You can pass the same arguments as you could to `mocha`. For example, `pnpm test:regressions:run --watch --grep "docs-system-basic"` to take new screenshots of every demo in `docs/src/pages/system/basic`. You can view the screenshots in `test/regressions/screenshots/chrome`. -Alternatively, you might want to open `http://localhost:5001` (while `pnpm test:regressions:dev` is running) to view individual views separately. +Alternatively, you might want to open `http://localhost:5173` (while `pnpm test:regressions:dev` is running) to view individual views separately. ### Caveats diff --git a/test/e2e/index.test.ts b/test/e2e/index.test.ts index f5693af5dc..efbd9bba45 100644 --- a/test/e2e/index.test.ts +++ b/test/e2e/index.test.ts @@ -11,7 +11,7 @@ import type { import '@mui/internal-test-utils/initMatchers'; import '@mui/internal-test-utils/initPlaywrightMatchers'; -const BASE_URL = 'http://localhost:5001'; +const BASE_URL = 'http://localhost:5173'; function sleep(duration: number): Promise { return new Promise((resolve) => { diff --git a/test/regressions/index.test.ts b/test/regressions/index.test.ts index 9cbe9289b9..b864cc00da 100644 --- a/test/regressions/index.test.ts +++ b/test/regressions/index.test.ts @@ -3,7 +3,7 @@ import * as fse from 'fs-extra'; import * as playwright from 'playwright'; import { describe, it } from 'vitest'; -const baseUrl = 'http://localhost:5001'; +const baseUrl = 'http://localhost:5173'; const screenshotDir = path.resolve(__dirname, './screenshots/chrome'); const browser = await playwright.chromium.launch({