feat(cv): rebuild section editing workflow
This commit is contained in:
@@ -5,6 +5,8 @@ import path from "node:path";
|
||||
const apiUrl = "http://localhost:5302";
|
||||
const appUrl = "http://localhost:3300";
|
||||
const dataRoot = path.join(os.tmpdir(), `jobtracker-e2e-${process.pid}-${Date.now().toString(36)}`);
|
||||
const reuseServers = process.env.PLAYWRIGHT_REUSE_SERVERS === "true";
|
||||
const useStaticExport = process.env.PLAYWRIGHT_STATIC_EXPORT === "true";
|
||||
|
||||
export default defineConfig({
|
||||
testDir: "./e2e",
|
||||
@@ -23,7 +25,7 @@ export default defineConfig({
|
||||
command: "dotnet run --no-build --configuration Release --project ../JobTrackerApi/JobTrackerApi.csproj --urls http://localhost:5302",
|
||||
url: `${apiUrl}/health`,
|
||||
timeout: 120_000,
|
||||
reuseExistingServer: false,
|
||||
reuseExistingServer: reuseServers,
|
||||
env: {
|
||||
ASPNETCORE_ENVIRONMENT: "Development",
|
||||
Auth__Require: "true",
|
||||
@@ -40,10 +42,12 @@ export default defineConfig({
|
||||
},
|
||||
},
|
||||
{
|
||||
command: "npm run dev -- --hostname localhost --port 3300",
|
||||
command: useStaticExport
|
||||
? "npm run build && npm run serve:export"
|
||||
: "npm run dev -- --hostname localhost --port 3300",
|
||||
url: appUrl,
|
||||
timeout: 120_000,
|
||||
reuseExistingServer: false,
|
||||
reuseExistingServer: reuseServers,
|
||||
env: { NEXT_PUBLIC_API_BASE_URL: `${apiUrl}/api` },
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user