mirror of
https://github.com/getnora-io/nora.git
synced 2026-04-12 12:40:31 +00:00
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:
@@ -10,12 +10,14 @@ test.describe('NORA Dashboard', () => {
|
||||
test('dashboard shows registry sections', async ({ page }) => {
|
||||
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(/npm/i).first()).toBeVisible();
|
||||
await expect(page.getByText(/Maven/i).first()).toBeVisible();
|
||||
await expect(page.getByText(/PyPI/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 }) => {
|
||||
@@ -65,6 +67,8 @@ test.describe('NORA Dashboard', () => {
|
||||
expect(health.registries.maven).toBe('ok');
|
||||
expect(health.registries.pypi).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 }) => {
|
||||
|
||||
Reference in New Issue
Block a user