Add 11 Playwright E2E tests covering Caddy import functionality gaps: Success modal navigation and button actions (Gap 1) Conflict details expansion with side-by-side comparison (Gap 2) Overwrite resolution flow for existing hosts (Gap 3) Session resume via banner (Gap 4 - skipped, documented limitation) Custom name editing in review table (Gap 5) Fixes: backend/internal/caddy/importer.go: Handle errcheck lint errors Result: 9 tests passing, 2 skipped with documented reason
34 lines
870 B
JavaScript
34 lines
870 B
JavaScript
// @ts-check
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
/**
|
|
* Standalone config for Caddy Import Debug tests
|
|
* Runs without security-tests dependency for faster iteration
|
|
*/
|
|
export default defineConfig({
|
|
testDir: './tests',
|
|
testMatch: '**/caddy-import-{debug,gaps}.spec.ts',
|
|
fullyParallel: false,
|
|
forbidOnly: !!process.env.CI,
|
|
retries: 0,
|
|
workers: 1,
|
|
reporter: [
|
|
['list'],
|
|
['html', { outputFolder: 'playwright-report/caddy-debug', open: 'never' }],
|
|
],
|
|
use: {
|
|
baseURL: process.env.PLAYWRIGHT_BASE_URL ||'http://localhost:8080',
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
video: 'retain-on-failure',
|
|
storageState: 'playwright/.auth/user.json', // Use existing auth state
|
|
},
|
|
|
|
projects: [
|
|
{
|
|
name: 'caddy-import-debug',
|
|
use: { ...devices['Desktop Chrome'] },
|
|
},
|
|
],
|
|
});
|