Make local UI setup truthful and rerunnable

This commit is contained in:
master
2026-04-14 21:44:35 +03:00
parent c69ebb4c48
commit 75ccdf81c1
28 changed files with 1272 additions and 173 deletions

View File

@@ -347,7 +347,7 @@ async function applyStep(page, currentStepId, nextStepId) {
&& response.url().includes(`/steps/${currentStepId}/apply`),
{ timeout: 30_000 },
),
clickPrimaryAction(page, /^Apply and Continue$/),
clickPrimaryAction(page, /Apply and Continue/i),
]);
if (nextStepId) {
@@ -436,11 +436,6 @@ async function main() {
);
await settle(page, 1000);
await ensureFieldValue(page, '#db-host', 'db.stella-ops.local');
await ensureFieldValue(page, '#db-port', '5432');
await ensureFieldValue(page, '#db-database', 'stellaops_platform');
await ensureFieldValue(page, '#db-user', 'stellaops');
await ensureFieldValue(page, '#db-password', 'stellaops');
const databaseValidated = await validateDatabase(page);
await applyStep(page, 'database', 'cache');
results.push({
@@ -456,10 +451,6 @@ async function main() {
{ timeout: 30_000 },
);
await settle(page, 750);
await ensureFieldValue(page, '#cache-host', 'cache.stella-ops.local');
await ensureFieldValue(page, '#cache-port', '6379');
await fillIfVisible(page, '#cache-password', '');
await ensureFieldValue(page, '#cache-database', '0');
await applyStep(page, 'cache', 'migrations');
results.push({
action: 'cache-step-completed',