feat(workflow-bar): total elapsed timer after the phase circles

This commit is contained in:
2026-07-03 13:26:25 +02:00
parent e630ac98f9
commit 3f852fd817
4 changed files with 87 additions and 8 deletions
+17
View File
@@ -0,0 +1,17 @@
import { render, screen } from "@testing-library/react";
import { ElapsedTimer } from "./ElapsedTimer";
test("renders nothing without a start time", () => {
const { container } = render(<ElapsedTimer startedAt={null} />);
expect(container).toBeEmptyDOMElement();
});
test("frozen elapsed when stoppedAt is set (2m 5s)", () => {
render(
<ElapsedTimer
startedAt="2026-07-03T10:00:00.000Z"
stoppedAt="2026-07-03T10:02:05.000Z"
/>,
);
expect(screen.getByText("2m 5s")).toBeInTheDocument();
});