fix(frontend): refine activity layout and input state
This commit is contained in:
@@ -67,3 +67,18 @@ test("does not POST when input is empty", async () => {
|
||||
await new Promise((r) => setTimeout(r, 50));
|
||||
expect(called).toBe(false);
|
||||
});
|
||||
|
||||
|
||||
test("keeps the new-question composer white by default", () => {
|
||||
render(<SteerInput sessionId={null} />);
|
||||
const input = screen.getByRole("textbox", { name: /new question/i });
|
||||
expect(input).not.toHaveAttribute("data-awaiting-input");
|
||||
expect(input).not.toHaveClass("thot-awaiting-input");
|
||||
});
|
||||
|
||||
test("marks the composer as awaiting input only when requested", () => {
|
||||
render(<SteerInput sessionId={null} awaitingInput />);
|
||||
const input = screen.getByRole("textbox", { name: /new question/i });
|
||||
expect(input).toHaveAttribute("data-awaiting-input", "true");
|
||||
expect(input).toHaveClass("thot-awaiting-input");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user