Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,23 @@ jobs:
- name: build
run: npm run build
working-directory: docs-site

browser-flows:
runs-on: ubuntu-latest
timeout-minutes: 15
defaults:
run:
working-directory: docs-site
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
persist-credentials: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 24
- run: npm ci
- run: npm run build
- run: npx e2e-web install chromium --with-deps
- run: npm run test:e2e
env:
E2E_TELEMETRY_DISABLED: "1"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ docs-site/*.tsbuildinfo
# Generated, platform-specific embedded session engines
/internal/galleton/bundle/*.bin
/internal/galleton/bundle/payload_*.go

docs-site/.e2e/
8 changes: 8 additions & 0 deletions docs-site/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ Brand scale `--brand-50` through `--brand-950` with logo `#14C1AD` at 500. Light
mode is mint (`#F7FCFB` page, `#FFFFFF` cards, `#10201E` text, `#0E9E8E` primary).
Dark mode is deep green (`#071411` page, `#0C1F1B` cards, `#EAFBF8` text,
`#14C1AD` primary, `#74E1D5` focus ring).

## Browser flow checks

Run `npm ci`, `npm run build`, `npx e2e-web install chromium`, and
`npm run test:e2e`. The pinned tester-army/e2e suite opens every MDX route
and checks its heading, home navigation, static search index and mobile overflow.
It makes no AI calls and uses no account credentials. This documentation suite
does not replace the Go CLI integration tests or prove live marketplace acceptance.
18 changes: 18 additions & 0 deletions docs-site/e2e-runner.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { createRequire } from "node:module";
import { dirname, join } from "node:path";
import { spawnSync } from "node:child_process";
const require = createRequire(import.meta.url);
const [major, minor, patch] = process.versions.node.split(".").map(Number);
const supported22 = major === 22 && (minor > 22 || (minor === 22 && patch >= 3));
const supported24 = major > 24 || (major === 24 && minor >= 8);
if (!supported22 && !supported24) {
console.error("Browser E2E requires Node ^22.22.3 or >=24.8.0.");
process.exit(1);
}
const cli = join(dirname(require.resolve("e2e")), "cli", "bin.js");
const result = spawnSync(process.execPath, [cli, "run", ...process.argv.slice(2)], {
stdio: "inherit",
env: { ...process.env, E2E_TELEMETRY_DISABLED: "1" },
});
if (result.error) throw result.error;
process.exit(result.status ?? 1);
9 changes: 9 additions & 0 deletions docs-site/e2e.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { E2EConfig } from "e2e";
import { web } from "@e2e-dev/web";
export default {
tests: "tests/**/*.e2e.ts", workers: 1, retries: 0, timeout: 30_000,
targets: [{ name: "chromium", engine: web(), app: {
url: "http://127.0.0.1:4176",
command: { executable: "python3", args: ["-m", "http.server", "4176", "--bind", "127.0.0.1", "--directory", "out"] },
} }],
} satisfies E2EConfig;
Loading
Loading