mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
add images to both VFS and API, update ChatPane UI
This commit is contained in:
1 parent
42637458c9
commit
653a7c0f0c
8 files changed
+339
-54
No files matched your search
@@ -16,8 +16,11 @@ describe('UserMessage', () => {
|
||||
|
||||
render(<UserMessage content={content} />);
|
||||
|
||||
// When using string content, it should still work but won't separate file attachments
|
||||
expect(screen.getByText(content)).toBeInTheDocument();
|
||||
// When using string content, it should parse and separate file attachments
|
||||
expect(screen.getByText('Here is my file:')).toBeInTheDocument();
|
||||
expect(screen.getByText('test.txt')).toBeInTheDocument();
|
||||
// Full path should not be displayed
|
||||
expect(screen.queryByText('/tmp/test.txt')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('renders file attachment badges for single file with text parts', () => {
|
||||
|
||||
Reference in new issue
Block a user