Files
Netcatty/components/systemManager/GpuVendorBadge.test.ts
T
bincxz 589001cfb7 fix: address multi-agent review findings on PR 2866
- Use scoped historySessions for draft-force and ownership-clear guards
  so out-of-scope sessions demote instead of sticking blank.
- On server-stats pause, keep the last snapshot but clear givenUp so
  resume can auto-retry after hard failure.
- Fix ProcessRow undeclared vendorLabel via vendorDisplayLabel; make
  GPU marks decorative (aria-hidden); attribute Simple Icons as CC0.
- Sticky icon-only when tab bar width is zero; include workspaces in
  TerminalLayer ctx deps.
2026-08-10 17:16:21 +08:00

17 lines
716 B
TypeScript

import assert from 'node:assert/strict';
import test from 'node:test';
import { readFileSync } from 'node:fs';
test('gpu vendor badge embeds monochrome vector marks for nvidia and ascend', () => {
const source = readFileSync(new URL('./GpuVendorBadge.tsx', import.meta.url), 'utf8');
assert.match(source, /viewBox="0 0 24 24"/);
assert.match(source, /fill-current/);
assert.match(source, /NVIDIA_PATH/);
assert.match(source, /HUAWEI_PATH/);
assert.match(source, /GpuVendorBadge/);
assert.match(source, /vendorDisplayLabel/);
// Mark is decorative; text label is the accessible name (no double announce).
assert.match(source, /aria-hidden="true"/);
assert.doesNotMatch(source, /role="img"/);
});