timmy-talking-turd/tests/release-demo.test.js
Timmy 29ba8594b8
Some checks failed
Quality gates / quality (pull_request) Failing after 1m56s
ci: enforce reproducible quality gates
2026-08-19 08:09:38 +00:00

14 lines
575 B
JavaScript

import test from 'node:test';
import assert from 'node:assert/strict';
import { readFile } from 'node:fs/promises';
const demoPath = new URL('../scripts/record_release_demo.mjs', import.meta.url);
test('release demo visibly explains the CI-protected browser path without overstating safety', async () => {
const demo = await readFile(demoPath, 'utf8');
assert.match(demo, /Automated checks replay this synthetic path before review/);
assert.match(demo, /tests\/fixtures\/synthetic-type4\.jpg/);
assert.match(demo, /Visual assistance — never a diagnosis\./);
});