Files
Infrastruktur-Monitoring-Sy…/frontend/e2e/cluster.spec.ts
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

22 lines
911 B
TypeScript

import { test, expect } from '@playwright/test'
test('cluster page shows node, workloads and lets an admin restart a workload', 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: 'Kubernetes' }).click()
await expect(page.getByTestId('node-version')).toContainText('v1.32')
const row = page.getByRole('row', { name: /^gitea gitea-postgresql statefulset/ })
await expect(row).toContainText('statefulset')
page.once('dialog', (d) => d.accept())
await page
.getByRole('row', { name: /^gitea gitea deployment/ })
.getByRole('button', { name: 'Restart' })
.click()
await expect(page.getByRole('status')).toContainText('Restart requested')
})