Close the last three UI leftovers: shared staff HTML, cookie domain, stock Swagger label.
Some checks are pending
offline / test (push) Waiting to run
Some checks are pending
offline / test (push) Waiting to run
verae-staff-ui holds one review template for CS and access-staff. Staff cookies take STAFF_COOKIE_DOMAIN for a reverse-proxy host. /docs stays vendor Swagger with an integrator banner only.
This commit is contained in:
parent
b68fefdea8
commit
d8efffe8be
23 changed files with 368 additions and 44 deletions
11
packages/verae-staff-ui/test/load.test.js
Normal file
11
packages/verae-staff-ui/test/load.test.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { test } from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import { loadReviewHtml } from '../src/load.js';
|
||||
|
||||
test('fills title kicker lede', () => {
|
||||
const html = loadReviewHtml({ title: 'Staff access', kicker: 'staff plane', lede: 'After authz.' });
|
||||
assert.match(html, /Staff access/);
|
||||
assert.match(html, /staff plane/);
|
||||
assert.match(html, /After authz/);
|
||||
assert.doesNotMatch(html, /\{\{TITLE\}\}/);
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue