chore: clean up repo structure

- Add node_modules/, test-results/, e2e-report/, .omp/ to .gitignore
- Remove throwaway debug scripts (debug-pw*.js, debug-login-dom.js)
- Remove empty mock-server/ directory
- Untrack harness artifact (.omp/plans/)
- Add missing project files to git (e2e tests, Dockerfiles, tooling configs)
This commit is contained in:
2026-07-12 23:42:54 +05:30
parent eb04a2597d
commit c6c5a04aca
25 changed files with 1400 additions and 1458 deletions

14
e2e/login.spec.ts Normal file
View File

@@ -0,0 +1,14 @@
import { test, expect } from '@playwright/test';
import { login } from './utils/auth';
test('login navigates to admin area', async ({ page }) => {
// login() waits for the LuCI JS framework to render the login view,
// fills root / empty password, submits, and waits for the admin menu.
await login(page);
// After login, LuCI lands on the admin overview at /cgi-bin/luci/
await expect(page).toHaveURL(/\/cgi-bin\/luci\//);
// The bootstrap admin menu should be visible.
await expect(page.locator('.nav').first()).toBeVisible();
});