test: tighten ui element assertions

This commit is contained in:
Shakker
2026-05-08 15:42:59 +01:00
parent 0cf28560fa
commit 29e27d2d9c
2 changed files with 0 additions and 2 deletions

View File

@@ -41,7 +41,6 @@ function renderAvatar(params: Parameters<typeof renderChatAvatar>) {
describe("renderChatAvatar", () => {
it("renders assistant fallback, blob image, and text avatars", () => {
const defaultAvatar = renderAvatar(["assistant"]);
expect(defaultAvatar).not.toBeNull();
expect(defaultAvatar?.getAttribute("src")).toBe("apple-touch-icon.png");
const remoteAvatar = renderAvatar([

View File

@@ -192,7 +192,6 @@ describe("renderLoginGate", () => {
await Promise.resolve();
const alert = container.querySelector<HTMLElement>('[role="alert"]');
expect(alert).not.toBeNull();
expect(alert?.dataset.kind).toBe("protocol-mismatch");
expect(alert?.textContent).toContain("Protocol mismatch");
expect(alert?.textContent).toContain("openclaw dashboard");