From c77f199fd6bf44683d83543c706cc684a030d788 Mon Sep 17 00:00:00 2001 From: Shakker Date: Tue, 12 May 2026 15:53:51 +0100 Subject: [PATCH] test: resolve lazy view text --- ui/src/ui/lazy-view.browser.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/ui/lazy-view.browser.test.ts b/ui/src/ui/lazy-view.browser.test.ts index 46a558e0194..793fd0b3b73 100644 --- a/ui/src/ui/lazy-view.browser.test.ts +++ b/ui/src/ui/lazy-view.browser.test.ts @@ -40,7 +40,7 @@ describe("lazy view rendering", () => { ); expect(onChange).toHaveBeenCalled(); - expect(container.textContent).toContain("Logs view"); + expect(container.textContent?.trim()).toBe("Logs view"); }); it("renders a recoverable error panel when a lazy module import fails", async () => { @@ -79,6 +79,6 @@ describe("lazy view rendering", () => { expect(loader).toHaveBeenCalledTimes(2); expect(onChange).toHaveBeenCalled(); - expect(container.textContent).toContain("Recovered"); + expect(container.textContent?.trim()).toBe("Recovered"); }); });