style: use a constant dark background for the In-Flight Monitor key
This commit is contained in:
@@ -7,19 +7,21 @@ test("svgDataUrl wraps an SVG as a base64 data URL", () => {
|
||||
assert.match(url, /^data:image\/svg\+xml;base64,/);
|
||||
});
|
||||
|
||||
test("renderInflight: ready + count renders IDLE in green", () => {
|
||||
test("renderInflight: ready + count renders IDLE on dark bg", () => {
|
||||
const svg = renderInflight({ modelName: "Qwen3.8-27B-NVFP4", state: "ready", count: 0, offline: false });
|
||||
assert.match(svg, /IDLE/);
|
||||
assert.match(svg, /#1e6b34/);
|
||||
assert.match(svg, /#10131a/);
|
||||
assert.doesNotMatch(svg, /ACTIVE/);
|
||||
assert.doesNotMatch(svg, /#1e6b34/);
|
||||
});
|
||||
|
||||
test("renderInflight: ready + count>0 renders the count number on red", () => {
|
||||
test("renderInflight: ready + count>0 renders the count number on dark bg", () => {
|
||||
const svg = renderInflight({ modelName: "Qwen3.8-27B-NVFP4", state: "ready", count: 2, offline: false });
|
||||
assert.match(svg, /2/);
|
||||
assert.match(svg, /#8b2626/);
|
||||
assert.match(svg, /#10131a/);
|
||||
assert.doesNotMatch(svg, /ACTIVE/);
|
||||
assert.doesNotMatch(svg, /IDLE/);
|
||||
assert.doesNotMatch(svg, /#8b2626/);
|
||||
});
|
||||
|
||||
test("renderInflight: idle state does not show a count number", () => {
|
||||
@@ -54,10 +56,11 @@ test("renderInflight: offline and no-model states", () => {
|
||||
assert.match(noModel, /NO MODEL/);
|
||||
});
|
||||
|
||||
test("renderInflight: loading renders LOADING in amber", () => {
|
||||
test("renderInflight: loading renders LOADING on dark bg", () => {
|
||||
const svg = renderInflight({ modelName: "A", state: "loading", count: 0, offline: false });
|
||||
assert.match(svg, /LOADING/);
|
||||
assert.match(svg, /#8a6d1d/);
|
||||
assert.match(svg, /#10131a/);
|
||||
assert.doesNotMatch(svg, /#8a6d1d/);
|
||||
});
|
||||
|
||||
test("renderGpuGraph: draws a polyline, value, and metric label", () => {
|
||||
|
||||
Reference in New Issue
Block a user