All checks were successful
Quality gates / quality (pull_request) Successful in 1m14s
16 lines
788 B
JavaScript
16 lines
788 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, /AI may suggest visible form, broad color, and image quality — never symptoms or diagnosis/);
|
|
assert.match(demo, /Release gates: clinical\/privacy review, beta consent, and RC approval/);
|
|
assert.match(demo, /Visual assistance — never a diagnosis\./);
|
|
});
|