Files
luci-app-zt-gateway/e2e/login.spec.ts
Malar Invention c6c5a04aca 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)
2026-07-12 23:42:54 +05:30

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();
});