hub-detail-panel-shell.test.mjs
21 lines 821 B
Raw
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0 feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes… Human minor ⚠ breaking 11 days 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:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882 fix(test): align Band B landing assertion with desktop MCP … Human 11 days ago