mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-24 04:27:27 +08:00
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:
@@ -15,11 +15,11 @@ export default defineConfig({
|
||||
command: process.env.CI
|
||||
? 'yarn workspace @blocksuite/playground run preview'
|
||||
: 'yarn workspace @blocksuite/playground run dev',
|
||||
port: process.env.CI ? 4173 : 5173,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
env: {
|
||||
COVERAGE: process.env.COVERAGE ?? '',
|
||||
},
|
||||
url: process.env.CI ? 'http://localhost:4173' : 'http://localhost:5173',
|
||||
},
|
||||
use: {
|
||||
browserName:
|
||||
|
||||
Reference in New Issue
Block a user