Skip to content

Commit 6044820

Browse files
fix(session-replay-browser): revert e2e port to 5173
The port change was a local-dev convenience to coexist with another worktree. It broke the urlMaskLevels e2e suite because privacy.spec.ts hardcodes localhost:5173 in MATCHING_PATTERN, so URL rules never matched on 5174 and inputs fell back to the default mask level. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 276355e commit 6044820

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

‎packages/session-replay-browser/playwright.config.ts‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ import path from 'path';
22
import { defineConfig } from '@playwright/test';
33
import baseConfig from '../../playwright.config';
44

5-
// Use 5174 so the test server can coexist with a main-branch dev server on 5173.
6-
const PORT = 5174;
7-
85
export default defineConfig({
96
...baseConfig,
107
testMatch: '**/e2e/**/*.spec.ts',
@@ -13,14 +10,10 @@ export default defineConfig({
1310
['json', { outputFile: 'e2e/results.json' }],
1411
['html', { open: 'never' }],
1512
],
16-
use: {
17-
...baseConfig.use,
18-
baseURL: `http://localhost:${PORT}`,
19-
},
2013
webServer: {
21-
command: `pnpm exec vite dev --port ${PORT} --clearScreen=false`,
14+
command: 'pnpm exec vite dev --port 5173 --clearScreen=false',
2215
cwd: path.resolve(__dirname, '../..'),
23-
url: `http://localhost:${PORT}`,
16+
url: 'http://localhost:5173',
2417
reuseExistingServer: !process.env.CI,
2518
timeout: 30000,
2619
},

0 commit comments

Comments
 (0)