Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit 71631adc0bc5ed8a9362c3bdd0cf112d2a7eb357
parent b882acd9fdf13cd80d3a32910abe07bbbbcffd4e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  2 Nov 2026 02:59:10 -0500

editor e2e: social-channel.spec's Sync screenshots under E2E_UI_OPS_SHOTS, declared (envVars.ts, the editor's playwright config, ENVIRONMENT.md)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
MENVIRONMENT.md | 1+
Mcommon/lib/envVars.ts | 1+
Meditor/e2e/social-channel.spec.ts | 2+-
Meditor/playwright.config.ts | 1+
4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ENVIRONMENT.md b/ENVIRONMENT.md @@ -263,6 +263,7 @@ Read only by a test harness, a fake binary or a test-mode branch. Never set one | `E2E_FIXTURE_MAX_LIFETIME_MS` | the watchdog's | How long a fake binary may live before its watchdog kills it. | editor/e2e/fixtures/bin/_watchdog.mjs | | `E2E_OLLAMA_STUB_MODEL` | `qwen2.5:7b` | The model the ollama stub claims to serve. | editor/e2e/fixtures/ollama-stub.mjs | | `E2E_RACK_SHOTS` | off (spec skipped) | Runs the `/channels` rack screenshot audit. | editor/e2e/channels-rack-audit.spec.ts | +| `E2E_UI_OPS_SHOTS` | off (no screenshots) | A directory: the social Sync tests (UI notes #17) write their screenshots there, for a review. | editor/e2e/social-channel.spec.ts | | `E2E_TWO_ORIGIN_REBUILD` | off | `1` rebuilds the two-origin suite's cached hub bundle. | export/e2e-2origin/globalSetup.ts | | `E2E_REPORT_SITE_REUSE` | off (build again) | `1` serves the cited report-site suite's existing stage build (`.e2e-report-site/out`) instead of staging and building the fixture site again — for iterating on the specs alone; it does not see a change to the app. | export/playwright.report.config.ts | | `E2E_SHARDS` | min(max(2, cpus/2), 8) | How many containers `pnpm e2e:sharded` splits the editor suite across (`--shards N` wins). | scripts/run-sharded-e2e.mjs | diff --git a/common/lib/envVars.ts b/common/lib/envVars.ts @@ -260,6 +260,7 @@ const DECLARED: EnvVarDecl[] = [ { name: "E2E_FIXTURE_MAX_LIFETIME_MS", audience: "test", default: "the watchdog's", readBy: "editor/e2e/fixtures/bin/_watchdog.mjs", doc: "How long a fake binary may live before its watchdog kills it." }, { name: "E2E_OLLAMA_STUB_MODEL", audience: "test", default: "`qwen2.5:7b`", readBy: "editor/e2e/fixtures/ollama-stub.mjs", doc: "The model the ollama stub claims to serve." }, { name: "E2E_RACK_SHOTS", audience: "test", default: "off (spec skipped)", readBy: "editor/e2e/channels-rack-audit.spec.ts", doc: "Runs the `/channels` rack screenshot audit." }, + { name: "E2E_UI_OPS_SHOTS", audience: "test", default: "off (no screenshots)", readBy: "editor/e2e/social-channel.spec.ts", doc: "A directory: the social Sync tests (UI notes #17) write their screenshots there, for a review." }, { name: "E2E_TWO_ORIGIN_REBUILD", audience: "test", default: "off", readBy: "export/e2e-2origin/globalSetup.ts", doc: "`1` rebuilds the two-origin suite's cached hub bundle." }, { name: "E2E_REPORT_SITE_REUSE", audience: "test", default: "off (build again)", readBy: "export/playwright.report.config.ts", doc: "`1` serves the cited report-site suite's existing stage build (`.e2e-report-site/out`) instead of staging and building the fixture site again — for iterating on the specs alone; it does not see a change to the app." }, { name: "E2E_SHARDS", audience: "test", default: "min(max(2, cpus/2), 8)", readBy: "scripts/run-sharded-e2e.mjs", doc: "How many containers `pnpm e2e:sharded` splits the editor suite across (`--shards N` wins)." }, diff --git a/editor/e2e/social-channel.spec.ts b/editor/e2e/social-channel.spec.ts @@ -269,7 +269,7 @@ test("a forum thread URL makes a forum-thread channel, and saved pages import in // Sync button on the /channels rack ran yt-dlp's listing against an X profile // and failed. It runs fetch-posts now (the fake gallery-dl here), and a // refusal is the post fetch's own sentence beside the button. -const UI_OPS_SHOTS = process.env.UI_OPS_SHOTS ?? ""; +const UI_OPS_SHOTS = process.env.E2E_UI_OPS_SHOTS ?? ""; const shot = async (page: import("@playwright/test").Page, name: string) => { if (!UI_OPS_SHOTS) return; await mkdir(UI_OPS_SHOTS, { recursive: true }); diff --git a/editor/playwright.config.ts b/editor/playwright.config.ts @@ -91,6 +91,7 @@ import { currentSlot } from "./e2e/testPaths"; // E2E_SERIAL_LAST set below by the runner for its workers: whether // the @serial project runs last (a whole run) // E2E_RACK_SHOTS=1 run the /channels rack screenshot audit +// E2E_UI_OPS_SHOTS=<dir> social-channel.spec's Sync screenshots (UI notes #17) go there // E2E_FAKE_YTDLP_AUDIO_CHECK_MODE, E2E_FAKE_YTDLP_CHUNK_DELAY_MS, // E2E_FAKE_YTDLP_CORRUPT_AFTER_CHUNK, E2E_FAKE_YTDLP_CORRUPT_RUNS, // E2E_FAKE_YTDLP_DETERMINISTIC_CORRUPT, E2E_FAKE_YTDLP_RECOVER_ON_RESUME,