WP-40/41/42: dashboard, security hardening, deployment and operations docs
Dashboard endpoint and page aggregating inventory, vulnerabilities, cluster health, backups and recent jobs. Security headers (CSP, nosniff, DENY, referrer policy), 1 MB body limit, configurable login rate limit, audit steps in CI. Installer script, systemd unit, install/architecture docs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
14
frontend/e2e/dashboard.spec.ts
Normal file
14
frontend/e2e/dashboard.spec.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('dashboard shows the overview tiles after login', async ({ page }) => {
|
||||
await page.goto('/login')
|
||||
await page.getByLabel('Email').fill('admin@example.com')
|
||||
await page.getByLabel('Password').fill('admin-password-123')
|
||||
await page.getByRole('button', { name: 'Sign in' }).click()
|
||||
await expect(page.getByRole('heading', { name: 'Dashboard' })).toBeVisible()
|
||||
await expect(page.getByTestId('tile-workloads')).toContainText('5')
|
||||
await expect(page.getByTestId('tile-critical')).toBeVisible()
|
||||
await expect(page.getByRole('heading', { name: 'Backups' })).toBeVisible()
|
||||
await page.getByTestId('tile-workloads').click()
|
||||
await expect(page).toHaveURL(/\/cluster/)
|
||||
})
|
||||
Reference in New Issue
Block a user