test: add Go and Raw to Playwright dashboard and health checks (#116)

All 7 registry types now verified in UI visibility and health endpoint tests.
This commit is contained in:
2026-04-08 11:56:51 +03:00
committed by GitHub
parent 4003c54744
commit 388ea8f6a5

View File

@@ -10,12 +10,14 @@ test.describe('NORA Dashboard', () => {
test('dashboard shows registry sections', async ({ page }) => { test('dashboard shows registry sections', async ({ page }) => {
await page.goto('/ui/'); await page.goto('/ui/');
// All registry types should be visible // All 7 registry types should be visible
await expect(page.getByText(/Docker/i).first()).toBeVisible(); await expect(page.getByText(/Docker/i).first()).toBeVisible();
await expect(page.getByText(/npm/i).first()).toBeVisible(); await expect(page.getByText(/npm/i).first()).toBeVisible();
await expect(page.getByText(/Maven/i).first()).toBeVisible(); await expect(page.getByText(/Maven/i).first()).toBeVisible();
await expect(page.getByText(/PyPI/i).first()).toBeVisible(); await expect(page.getByText(/PyPI/i).first()).toBeVisible();
await expect(page.getByText(/Cargo/i).first()).toBeVisible(); await expect(page.getByText(/Cargo/i).first()).toBeVisible();
await expect(page.getByText(/Go/i).first()).toBeVisible();
await expect(page.getByText(/Raw/i).first()).toBeVisible();
}); });
test('dashboard shows non-zero npm count after proxy fetch', async ({ page, request }) => { test('dashboard shows non-zero npm count after proxy fetch', async ({ page, request }) => {
@@ -65,6 +67,8 @@ test.describe('NORA Dashboard', () => {
expect(health.registries.maven).toBe('ok'); expect(health.registries.maven).toBe('ok');
expect(health.registries.pypi).toBe('ok'); expect(health.registries.pypi).toBe('ok');
expect(health.registries.cargo).toBe('ok'); expect(health.registries.cargo).toBe('ok');
expect(health.registries.go).toBe('ok');
expect(health.registries.raw).toBe('ok');
}); });
test('OpenAPI docs endpoint accessible', async ({ request }) => { test('OpenAPI docs endpoint accessible', async ({ request }) => {