Skip to content

Commit 29e27d2

Browse files
committed
test: tighten ui element assertions
1 parent 0cf2856 commit 29e27d2

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

ui/src/ui/chat/chat-avatar.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ function renderAvatar(params: Parameters<typeof renderChatAvatar>) {
4141
describe("renderChatAvatar", () => {
4242
it("renders assistant fallback, blob image, and text avatars", () => {
4343
const defaultAvatar = renderAvatar(["assistant"]);
44-
expect(defaultAvatar).not.toBeNull();
4544
expect(defaultAvatar?.getAttribute("src")).toBe("apple-touch-icon.png");
4645

4746
const remoteAvatar = renderAvatar([

ui/src/ui/views/login-gate.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@ describe("renderLoginGate", () => {
192192
await Promise.resolve();
193193

194194
const alert = container.querySelector<HTMLElement>('[role="alert"]');
195-
expect(alert).not.toBeNull();
196195
expect(alert?.dataset.kind).toBe("protocol-mismatch");
197196
expect(alert?.textContent).toContain("Protocol mismatch");
198197
expect(alert?.textContent).toContain("openclaw dashboard");

0 commit comments

Comments
 (0)