From 6664295b2b9a929158b9b5ca8056ce3d26f2377e Mon Sep 17 00:00:00 2001 From: gopu-bruno Date: Mon, 2 Feb 2026 16:29:50 +0530 Subject: [PATCH] fix: update sidebar item copy toast message (#7011) --- .../Sidebar/Collections/Collection/CollectionItem/index.js | 2 +- tests/request/copy-request/keyboard-shortcuts.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js index 918c6accd..a3a89fac5 100644 --- a/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js +++ b/packages/bruno-app/src/components/Sidebar/Collections/Collection/CollectionItem/index.js @@ -535,7 +535,7 @@ const CollectionItem = ({ item, collectionUid, collectionPathname, searchText }) const handleCopyItem = () => { dispatch(copyRequest(item)); const itemType = isFolder ? 'Folder' : 'Request'; - toast.success(`${itemType} copied to clipboard`); + toast.success(`${itemType} copied`); }; const handlePasteItem = () => { diff --git a/tests/request/copy-request/keyboard-shortcuts.spec.ts b/tests/request/copy-request/keyboard-shortcuts.spec.ts index 91e5d5790..cff366254 100644 --- a/tests/request/copy-request/keyboard-shortcuts.spec.ts +++ b/tests/request/copy-request/keyboard-shortcuts.spec.ts @@ -34,7 +34,7 @@ test.describe('Copy and Paste with Keyboard Shortcuts', () => { await page.keyboard.press(`${modifier}+KeyC`); // Verify copy success (toast message) - await expect(page.getByText(/copied to clipboard/i).first()).toBeVisible(); + await expect(page.getByText(/Request copied/i).first()).toBeVisible(); // Focus the collection to paste await collection.click(); @@ -75,7 +75,7 @@ test.describe('Copy and Paste with Keyboard Shortcuts', () => { await page.keyboard.press(`${modifier}+KeyC`); // Verify copy success - await expect(page.getByText(/copied to clipboard/i).first()).toBeVisible(); + await expect(page.getByText(/Folder copied/i).first()).toBeVisible(); // Focus the collection to paste await collection.click();