mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-17 11:20:37 +09:00
Polish issue chat actions and overflow
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
f593e116c1
commit
8ada49f31b
2 changed files with 42 additions and 22 deletions
|
|
@ -51,12 +51,15 @@ vi.mock("./MarkdownEditor", () => ({
|
|||
MarkdownEditor: ({
|
||||
value = "",
|
||||
onChange,
|
||||
placeholder,
|
||||
}: {
|
||||
value?: string;
|
||||
onChange?: (value: string) => void;
|
||||
placeholder?: string;
|
||||
}) => (
|
||||
<textarea
|
||||
aria-label="Issue chat editor"
|
||||
placeholder={placeholder}
|
||||
value={value}
|
||||
onChange={(event) => onChange?.(event.target.value)}
|
||||
/>
|
||||
|
|
@ -158,6 +161,7 @@ describe("IssueChatThread", () => {
|
|||
|
||||
const editor = container.querySelector('textarea[aria-label="Issue chat editor"]') as HTMLTextAreaElement | null;
|
||||
expect(editor).not.toBeNull();
|
||||
expect(editor?.placeholder).toBe("Reply");
|
||||
|
||||
act(() => {
|
||||
const valueSetter = Object.getOwnPropertyDescriptor(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue