mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 13:40:44 +00:00
test: tighten ui element assertions
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user