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

19 lines
930 B
TypeScript

import { test, expect } from '@playwright/test'
test('updates page shows OS info and packages after a refresh', 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 page.getByRole('navigation').getByRole('link', { name: 'Updates' }).click()
await page.getByRole('button', { name: 'Refresh inventory' }).click()
await expect(page.getByTestId('os-name')).toContainText('Debian', { timeout: 15_000 })
await expect(page.getByText('Reboot required')).toBeVisible()
await expect(page.getByTestId('summary-upgradable')).toContainText('3')
await page.getByLabel('Upgradable only').check()
await expect(page.getByRole('row', { name: /openssl/ })).toBeVisible()
await expect(page.getByRole('row', { name: /bash/ })).toHaveCount(0)
})