- 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)
15 lines
550 B
TypeScript
15 lines
550 B
TypeScript
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();
|
|
});
|