mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Remove path from added file render
This commit is contained in:
3 files changed
+10
-6
No files matched your search
@@ -19,7 +19,8 @@ describe('UserMessage Integration', () => {
|
||||
|
||||
// Check that file attachment is rendered as a badge
|
||||
expect(screen.getByText('data.csv')).toBeInTheDocument();
|
||||
expect(screen.getByText('/tmp/data.csv')).toBeInTheDocument();
|
||||
// Full path should not be displayed
|
||||
expect(screen.queryByText('/tmp/data.csv')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('handles single text part with file attachment', () => {
|
||||
@@ -30,7 +31,8 @@ describe('UserMessage Integration', () => {
|
||||
render(<UserMessage content={content} />);
|
||||
|
||||
expect(screen.getByText('script.js')).toBeInTheDocument();
|
||||
expect(screen.getByText('/tmp/script.js')).toBeInTheDocument();
|
||||
// Full path should not be displayed
|
||||
expect(screen.queryByText('/tmp/script.js')).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
it('handles multiple file attachments in separate parts', () => {
|
||||
|
||||
Reference in new issue
Block a user