mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-01 16:44:16 +00:00
fix: update sidebar item copy toast message (#7011)
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user