fix: update sidebar item copy toast message (#7011)

This commit is contained in:
gopu-bruno
2026-02-02 16:29:50 +05:30
committed by GitHub
parent 679cb91549
commit 6664295b2b
2 changed files with 3 additions and 3 deletions

View File

@@ -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 = () => {

View File

@@ -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();