Make local UI setup truthful and rerunnable
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user