diff --git a/src/frontend/src/components/dashboard/DashboardWidget.tsx b/src/frontend/src/components/dashboard/DashboardWidget.tsx index 3054963285..0ac23e91e3 100644 --- a/src/frontend/src/components/dashboard/DashboardWidget.tsx +++ b/src/frontend/src/components/dashboard/DashboardWidget.tsx @@ -55,6 +55,20 @@ export default function DashboardWidget({ overflowY: 'hidden' }} > + {/* Overlay to prevent mouse events when editing */} + {editing && ( + + )} {item.render()} {removing && ( diff --git a/src/frontend/tests/pages/pui_part.spec.ts b/src/frontend/tests/pages/pui_part.spec.ts index 8b3efbd08d..97c32f2825 100644 --- a/src/frontend/tests/pages/pui_part.spec.ts +++ b/src/frontend/tests/pages/pui_part.spec.ts @@ -134,7 +134,12 @@ test('Part - Editing', async ({ browser }) => { await page.getByText('Enter a valid URL.').waitFor(); // Fill with an empty URL + const description = await page + .getByLabel('text-field-description') + .inputValue(); + await page.getByRole('textbox', { name: 'text-field-link' }).fill(''); + await page.getByLabel('text-field-description').fill(`${description}+`); await page.waitForTimeout(200); await page.getByRole('button', { name: 'Submit' }).click(); await page.getByText('Item Updated').waitFor();