Blur conversation images by default
This commit is contained in:
1 parent
5c01d7d9aa
commit
e7c29f91f2
5 files changed
+60
-31
No files matched your search
@@ -142,6 +142,9 @@ describe('ConversationsPage', () => {
|
||||
'src',
|
||||
'https://i.redd.it/source-post.jpg',
|
||||
);
|
||||
expect(screen.getByRole('img', { name: 'Source post: Looking for a chat' })).toHaveClass('is-blurred');
|
||||
await user.click(screen.getByRole('button', { name: 'Reveal original image' }));
|
||||
expect(screen.getByRole('img', { name: 'Source post: Looking for a chat' })).not.toHaveClass('is-blurred');
|
||||
});
|
||||
|
||||
it('orders conversations by latest message activity', async () => {
|
||||
@@ -215,14 +218,9 @@ describe('ConversationsPage', () => {
|
||||
'src',
|
||||
'/media/received%20image.jpg',
|
||||
);
|
||||
expect(screen.getByRole('link', { name: 'View original image received from u/alice' })).toHaveAttribute(
|
||||
'href',
|
||||
'/media/received%20image.jpg',
|
||||
);
|
||||
expect(screen.getByRole('link', { name: 'View original image received from u/alice' })).toHaveAttribute(
|
||||
'target',
|
||||
'_blank',
|
||||
);
|
||||
expect(screen.getByRole('img', { name: 'Image received from u/alice' })).toHaveClass('is-blurred');
|
||||
await user.click(screen.getByRole('button', { name: 'Reveal conversation image' }));
|
||||
expect(screen.getByRole('img', { name: 'Image received from u/alice' })).not.toHaveClass('is-blurred');
|
||||
});
|
||||
|
||||
it('turns a suggestion into an editable draft and confirms sending without losing failed input', async () => {
|
||||
|
||||
Reference in new issue
Block a user