feat: render hourly investment states
This commit was merged in pull request #51.
This commit is contained in:
@@ -32,6 +32,21 @@ describe("SourceSyncStatus", () => {
|
||||
expect(screen.getByRole("status")).toHaveTextContent("Обновление не удалось");
|
||||
});
|
||||
|
||||
it("announces an active or failed source attempt with text", () => {
|
||||
renderStatus({
|
||||
lastAttempt: {
|
||||
finishedAt: null,
|
||||
problems: [],
|
||||
startedAt: "2026-02-03T10:15:00.000Z",
|
||||
state: "running",
|
||||
},
|
||||
});
|
||||
|
||||
expect(screen.getByRole("status")).toHaveTextContent(
|
||||
"Обновление выполняется",
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps the notices next to the timestamp they belong to", () => {
|
||||
renderStatus({
|
||||
errorText: "Обновление не удалось",
|
||||
|
||||
Reference in New Issue
Block a user