Release Log Tools 0.2.0
Verify / verify (push) Canceled after 0s

This commit is contained in:
2026-09-02 08:33:59 +02:00
parent 84a9978aa8
commit f209bf78ee
27 changed files with 1621 additions and 106 deletions
+6 -2
View File
@@ -1,6 +1,6 @@
import { render, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { describe, expect, it, vi } from "vitest";
import { afterEach, describe, expect, it, vi } from "vitest";
import { App } from "../../src/App";
class StreamingTestBlob {
@@ -25,6 +25,10 @@ class StreamingTestBlob {
}
}
afterEach(() => {
vi.unstubAllGlobals();
});
describe("Log Tools", () => {
it("streams the sample and exposes correlation and redaction views", async () => {
vi.stubGlobal("Blob", StreamingTestBlob as unknown as typeof Blob);
@@ -52,7 +56,7 @@ describe("Log Tools", () => {
expect(
screen.getByText("JSON Lines", { selector: ".metrics strong" }),
).toBeVisible();
await userEvent.click(screen.getByRole("tab", { name: "Redaction" }));
await userEvent.click(screen.getByRole("button", { name: "Redaction" }));
expect(screen.getByText("Deterministic recipes")).toBeVisible();
expect(screen.getByLabelText("Redacted preview")).not.toHaveTextContent(
"ada@example.test",