chore(infra): add url test to playwright (#11795)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Updated Playwright test configurations to use full URL strings instead of port numbers for web server identification. - Unified server startup approach in test environments by integrating web server configuration directly into Playwright, replacing custom setup scripts. - Removed obsolete development server setup files to streamline test initialization. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -24,7 +24,6 @@ const config: PlaywrightTestConfig = {
|
||||
// Intentionally not building the web, reminds you to run it by yourself.
|
||||
{
|
||||
command: 'yarn run -T affine dev -p @affine/electron-renderer',
|
||||
port: 8080,
|
||||
timeout: 120 * 1000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
stdout: 'pipe',
|
||||
@@ -32,10 +31,10 @@ const config: PlaywrightTestConfig = {
|
||||
COVERAGE: process.env.COVERAGE || 'false',
|
||||
DISTRIBUTION: 'desktop',
|
||||
},
|
||||
url: 'http://localhost:8080',
|
||||
},
|
||||
{
|
||||
command: 'yarn run -T affine dev -p @affine/server',
|
||||
port: 3010,
|
||||
timeout: 120 * 1000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
stdout: 'pipe',
|
||||
@@ -51,6 +50,7 @@ const config: PlaywrightTestConfig = {
|
||||
DEBUG_COLORS: 'true',
|
||||
MAILER_SENDER: 'noreply@toeverything.info',
|
||||
},
|
||||
url: 'http://localhost:3010/graphql',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user