Reference site: Example Studio on ipal-kit (reference/), index for agents, CI job
reference/ is one complete client site on the plugin (made-up company, pl/en, MongoDB, every library block and template, token standard light/dark, forms, consent, SEO/GEO, enforced CSP, 2FA, base + demo seeds, Coolify runbook, smoke tests). It uses the plugin as file:.. (injected) and is not shipped. - docs/agent/reference-site/INDEX.md (generated by scripts/reference-index.mjs, kept current by test/referenceIndex.test.ts) - AGENT.md section and pointers in ipal-site, ipal-setup, ipal-reference, ipal-upgrade, ipal-block; release steps in PROGRAMISTA §8.1b - CI: reference (fast) on every push, reference-full on main; doctor steps wired, commented until ipal-doctor ships Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
8bb5ebd394
commit
8adac41f92
@@ -0,0 +1,27 @@
|
||||
import { defineConfig, devices } from '@playwright/test'
|
||||
|
||||
// .env holds the E2E_* test values locally; CI passes them as env
|
||||
try {
|
||||
process.loadEnvFile('.env')
|
||||
} catch {
|
||||
// no .env (CI)
|
||||
}
|
||||
|
||||
/** Smoke tests against a built, seeded site: pnpm build && pnpm seed && pnpm payload run e2e/create-test-admin.ts. */
|
||||
const baseURL = process.env.E2E_BASE_URL ?? 'http://localhost:3100'
|
||||
|
||||
export default defineConfig({
|
||||
forbidOnly: !!process.env.CI,
|
||||
projects: [{ name: 'chromium', use: { ...devices['Desktop Chrome'] } }],
|
||||
reporter: process.env.CI ? 'line' : 'list',
|
||||
retries: process.env.CI ? 1 : 0,
|
||||
testDir: './e2e',
|
||||
use: { baseURL, trace: 'retain-on-failure' },
|
||||
webServer: {
|
||||
command: 'pnpm start',
|
||||
env: { PORT: new URL(baseURL).port || '3000' },
|
||||
reuseExistingServer: true,
|
||||
url: `${baseURL}/api/health`,
|
||||
},
|
||||
workers: 1,
|
||||
})
|
||||
Reference in New Issue
Block a user