Files
Dennis Nemec 9234e1ba47 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>
2026-09-02 23:26:01 +02:00

15 lines
726 B
TypeScript

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/)
})