e2e(core): add test for split view (#6133)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import assert from 'node:assert';
|
||||
|
||||
import { testResultDir } from '@affine-test/kit/playwright';
|
||||
import type { PlaywrightTestConfig } from '@playwright/test';
|
||||
// import { devices } from '@playwright/test';
|
||||
@@ -26,4 +28,23 @@ if (process.env.CI) {
|
||||
config.workers = '50%';
|
||||
}
|
||||
|
||||
if (process.env.DEV_SERVER_URL) {
|
||||
const devServerUrl = new URL(process.env.DEV_SERVER_URL);
|
||||
assert(
|
||||
devServerUrl.origin === 'http://localhost:8080',
|
||||
'DEV_SERVER_URL must be http://localhost:8080'
|
||||
);
|
||||
config.webServer = [
|
||||
{
|
||||
command: 'yarn run start:web-static',
|
||||
port: 8080,
|
||||
timeout: 120 * 1000,
|
||||
reuseExistingServer: !process.env.CI,
|
||||
env: {
|
||||
COVERAGE: process.env.COVERAGE || 'false',
|
||||
},
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user