14 lines
575 B
JavaScript
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\./);
|
|
});
|