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:
14
e2e/login.spec.ts
Normal file
14
e2e/login.spec.ts
Normal 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();
|
||||
});
|
||||
Reference in New Issue
Block a user