diff --git a/scripts/verify-release-candidate.mjs b/scripts/verify-release-candidate.mjs index ad14332..04297d3 100644 --- a/scripts/verify-release-candidate.mjs +++ b/scripts/verify-release-candidate.mjs @@ -12,6 +12,7 @@ try { runCommand('node', ['scripts/verify-static-data.mjs']); mkdirSync(screenshotDir, { recursive: true }); serverProcess = await ensurePreviewServer(targetUrl); + runCommand(process.execPath, ['scripts/verify-save-retry-flow.mjs'], { VERIFY_URL: targetUrl }); browser = await chromium.launch({ headless: true }); const page = await browser.newPage({ viewport: { width: 1280, height: 720 } }); @@ -467,8 +468,8 @@ function assert(condition, message) { } } -function runCommand(command, args) { - const result = spawnSync(command, args, { cwd: process.cwd(), stdio: 'inherit' }); +function runCommand(command, args, env = {}) { + const result = spawnSync(command, args, { cwd: process.cwd(), env: { ...process.env, ...env }, stdio: 'inherit' }); if (result.status !== 0) { throw new Error(`Command failed: ${command} ${args.join(' ')}`); }