config: nextjs,frontends,daemon (3 files)

This commit is contained in:
2025-12-26 05:15:28 +00:00
parent c4432d55d5
commit f098a1aab9
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { expect, test } from '@playwright/test'
test.describe('DBAL Daemon', () => {
test('shows the daemon hero, highlights, and status feed', async ({ page }) => {
await page.goto('/dbal-daemon')
await expect(page.getByRole('heading', { name: /C\+\+ Daemon/i })).toBeVisible()
await expect(page.getByText(/Sandboxed gRPC Gateway/i)).toBeVisible()
await expect(page.getByText(/Query Executor/i)).toBeVisible()
await expect(page.getByText(/Adapter Layer/i)).toBeVisible()
await expect(page.getByRole('heading', { name: /Server Status/i })).toBeVisible()
// Wait for at least one status card to load
await expect(page.getByText(/DBAL TypeScript Client/i)).toBeVisible()
await expect(page.getByText(/Observability Feed/i)).toBeVisible()
})
})

View File

@@ -25,6 +25,7 @@
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
"test:e2e:dbal-daemon": "playwright test --config=playwright.dbal-daemon.config.ts",
"test:all": "npm run test:unit && npm run test:e2e",
"act": "bash scripts/run-act.sh",
"act:list": "bash scripts/run-act.sh -l",

View File

@@ -0,0 +1,27 @@
import { defineConfig, devices } from '@playwright/test';
export default defineConfig({
testDir: './e2e/dbal-daemon',
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: process.env.CI ? 1 : undefined,
reporter: 'html',
use: {
baseURL: 'http://localhost:3000',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
},
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
],
webServer: {
command: 'npm run dev',
url: 'http://localhost:3000',
reuseExistingServer: !process.env.CI,
timeout: 300 * 1000,
},
});