mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-26 16:35:14 +00:00
test: resolve lazy view text
This commit is contained in:
@@ -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");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user