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
22 lines
866 B
TypeScript
22 lines
866 B
TypeScript
import { test } from '@playwright/test';
|
|
test('Homarr setup', async ({ page }) => {
|
|
test.setTimeout(60000);
|
|
await page.goto('http://100.88.57.96:30093/', { timeout: 10000, waitUntil: 'domcontentloaded' });
|
|
await page.waitForTimeout(3000);
|
|
|
|
// Click buttons with force (don't wait for navigation)
|
|
for (const text of ["Start update process", "Next", "Next", "Next", "Finish"]) {
|
|
const btn = page.locator(`button:has-text("${text}"):visible`).first();
|
|
if (await btn.isVisible({ timeout: 3000 }).catch(() => false)) {
|
|
await btn.click({ force: true, timeout: 5000 });
|
|
await page.waitForTimeout(3000);
|
|
console.log(`Clicked "${text}"`);
|
|
} else {
|
|
console.log(`Button "${text}" not found at step`);
|
|
break;
|
|
}
|
|
}
|
|
|
|
await page.screenshot({ path: '/tmp/homarr-done.png' });
|
|
console.log('Done at:', page.url());
|
|
});
|