hub-detail-panel-shell.test.mjs
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
1 day ago
| 1 | /** |
| 2 | * Ensures the Hub detail drawer shell includes bottom close and footer hint (UX contract). |
| 3 | */ |
| 4 | import { describe, it } from 'node:test'; |
| 5 | import assert from 'node:assert'; |
| 6 | import fs from 'fs'; |
| 7 | import path from 'path'; |
| 8 | import { fileURLToPath } from 'url'; |
| 9 | |
| 10 | const __dirname = path.dirname(fileURLToPath(import.meta.url)); |
| 11 | const indexPath = path.join(__dirname, '..', 'web', 'hub', 'index.html'); |
| 12 | |
| 13 | describe('hub detail panel shell', () => { |
| 14 | it('index.html includes bottom close, footer hint, and detail panel', () => { |
| 15 | const html = fs.readFileSync(indexPath, 'utf8'); |
| 16 | assert.match(html, /data-hub-detail-close/); |
| 17 | assert.match(html, /detail-footer-hint/); |
| 18 | assert.match(html, /class="[^"]*detail-footer/); |
| 19 | assert.ok(html.includes('id="detail-panel"') && html.includes('id="detail-body"')); |
| 20 | }); |
| 21 | }); |
File History
1 commit
sha256:8915fe406161f95c1681f9469375e7bae5b28c884f00bedbdef65e4b0cd0738d
docs(flow): commit FLOW-V0-SPEC.md hygiene for 7A-INT merge
Human
1 day ago