mirror of
https://github.com/allaunthefox/Research-Stack.git
synced 2026-07-31 03:05:21 +00:00
- Homarr OIDC env vars set (sso-homarr) - Database created at /data/db.sqlite - Config schema updated to v2 - Onboard wizard needs final UI completion Build: 3313 jobs, 0 errors
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import { test } from '@playwright/test';
|
|
test('Homarr onboarding', async ({ page }) => {
|
|
test.setTimeout(60000);
|
|
await page.goto('http://100.88.57.96:30093/', { timeout: 10000 });
|
|
await page.waitForTimeout(3000);
|
|
|
|
// Click "Start update process"
|
|
const startBtn = page.locator('button:has-text("Start update process"):visible').first();
|
|
if (await startBtn.isVisible({ timeout: 3000 }).catch(() => false)) {
|
|
await startBtn.click();
|
|
await page.waitForTimeout(3000);
|
|
console.log('Step 1 clicked');
|
|
}
|
|
|
|
// Continue through steps
|
|
for (let i = 0; i < 5; i++) {
|
|
const nextBtn = page.locator('button:has-text("Next"):visible, button:has-text("Continue"):visible, button:has-text("Finish"):visible, button[data-button="true"]:visible').first();
|
|
if (await nextBtn.isVisible({ timeout: 2000 }).catch(() => false)) {
|
|
await nextBtn.click();
|
|
await page.waitForTimeout(2000);
|
|
console.log(`Step ${i+2} clicked`);
|
|
} else {
|
|
break;
|
|
}
|
|
}
|
|
|
|
await page.screenshot({ path: '/tmp/homarr-done.png' });
|
|
console.log('Onboarding complete');
|
|
});
|