Expand test coverage across server, agent, and web; fix bugs found during audit.
Adds hundreds of unit/integration/e2e tests, fixes WS bcrypt auth, config merge, fleet analytics, agent schedule/log tail, and documents stale PROBLEMS items. Updates PROBLEMS.md, README, and test scripts; ignores local spread-kits and coverage dirs.
This commit is contained in:
@@ -298,11 +298,11 @@ describe('GaugeRing', () => {
|
||||
|
||||
it('shows raw value in center while ring arc clamps to 0–100%', () => {
|
||||
const { rerender, container } = render(<GaugeRing value={-10} max={100} label="X" />);
|
||||
expect(screen.getByText('-10%')).toBeInTheDocument();
|
||||
expect(screen.getByText('0%')).toBeInTheDocument();
|
||||
const fill = container.querySelector('.gauge-ring-fill') as SVGCircleElement;
|
||||
expect(fill.getAttribute('stroke-dashoffset')).toBe(String(2 * Math.PI * 42));
|
||||
rerender(<GaugeRing value={200} max={100} label="X" />);
|
||||
expect(screen.getByText('200%')).toBeInTheDocument();
|
||||
expect(screen.getByText('100%')).toBeInTheDocument();
|
||||
expect((container.querySelector('.gauge-ring-fill') as SVGCircleElement).getAttribute('stroke-dashoffset')).toBe('0');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user