mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
config: nextjs,frontends,daemon (3 files)
This commit is contained in:
17
frontends/nextjs/e2e/dbal-daemon/daemon.spec.ts
Normal file
17
frontends/nextjs/e2e/dbal-daemon/daemon.spec.ts
Normal 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()
|
||||
})
|
||||
})
|
||||
@@ -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",
|
||||
|
||||
27
frontends/nextjs/playwright.dbal-daemon.config.ts
Normal file
27
frontends/nextjs/playwright.dbal-daemon.config.ts
Normal 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,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user