test: fix playwright tests

This commit is contained in:
sua yoo
2023-11-29 15:54:44 -05:00
committed by emma
parent 49246fee61
commit d13c850f0e
3 changed files with 41 additions and 21 deletions
+11 -10
View File
@@ -1,24 +1,25 @@
import { defineConfig } from '@playwright/test';
/* eslint-env node */
import { defineConfig } from "@playwright/test";
export default defineConfig({
reporter: process.env.CI ? 'github' : 'list',
reporter: process.env.CI ? "github" : "list",
webServer: [
{
command: 'yarn run start-prod',
url: 'http://127.0.0.1:9990',
command: "yarn run start-prod",
url: "http://127.0.0.1:9990",
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
{
command: 'yarn run test-start-embed',
url: 'http://127.0.0.1:8020',
command: "yarn run test-start-embed",
url: "http://127.0.0.1:8020",
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
{
command: 'yarn run test-start-sandbox',
url: 'http://127.0.0.1:8030',
command: "yarn run test-start-sandbox",
url: "http://127.0.0.1:8030",
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
}
]
},
],
});