test(voyage): Group B fleet-grid CSS parity assertion (99707f51)
This commit is contained in:
parent
4bee1f2f7e
commit
35d28a52f3
2 changed files with 16 additions and 4 deletions
|
|
@ -73,3 +73,16 @@ test('Group B — anchor-ID format ANN-NNNN matches Node-side parser (v4.3 Step
|
|||
assert.match(text, /\/\^ANN-\\d\{4\}\$\//, 'VOYAGE_ANCHOR_ID_RE pattern required');
|
||||
assert.match(text, /function\s+parseAnchor\s*\(/, 'parseAnchor function required');
|
||||
});
|
||||
|
||||
// --- Fleet-grid CSS parity vs vendored DS (v4.3 Step 9 / 99707f51) ---
|
||||
test('Group B — SC1.4 fleet-grid CSS parity vs vendored DS (99707f51)', () => {
|
||||
const cssPath = join(ROOT, 'playground', 'vendor', 'playground-design-system', 'components-tier3-supplement.css');
|
||||
const css = readFileSync(cssPath, 'utf-8');
|
||||
const startIdx = css.indexOf('.fleet-grid {');
|
||||
assert.notStrictEqual(startIdx, -1, '.fleet-grid block required in vendored DS components-tier3-supplement.css');
|
||||
const endIdx = css.indexOf('}', startIdx);
|
||||
assert.notStrictEqual(endIdx, -1, '.fleet-grid block must terminate');
|
||||
const block = css.slice(startIdx, endIdx + 1);
|
||||
assert.match(block, /grid-template-columns:\s*repeat\(4,\s*1fr\)/, '.fleet-grid grid-template-columns: repeat(4, 1fr) required');
|
||||
assert.match(block, /gap:\s*var\(--space-3\)/, '.fleet-grid gap: var(--space-3) required');
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue