diff --git a/e2e/src/web/specs/asset-viewer/detail-panel.e2e-spec.ts b/e2e/src/web/specs/asset-viewer/detail-panel.e2e-spec.ts index ad847dab15..9cfcc4f37b 100644 --- a/e2e/src/web/specs/asset-viewer/detail-panel.e2e-spec.ts +++ b/e2e/src/web/specs/asset-viewer/detail-panel.e2e-spec.ts @@ -43,4 +43,18 @@ test.describe('Detail Panel', () => { await page.keyboard.press('i'); await expect(page.locator('#detail-panel')).toHaveCount(0); }); + + test('description is visible for owner on shared links', async ({ context, page }) => { + const sharedLink = await utils.createSharedLink(admin.accessToken, { + type: SharedLinkType.Individual, + assetIds: [asset.id], + }); + await utils.setAuthCookies(context, admin.accessToken); + await page.goto(`/share/${sharedLink.key}/photos/${asset.id}`); + + const textarea = page.getByRole('textbox', { name: 'Add a description' }); + await page.getByRole('button', { name: 'Info' }).click(); + await expect(textarea).toBeVisible(); + await expect(textarea).not.toBeDisabled(); + }); }); diff --git a/web/src/lib/components/asset-viewer/detail-panel-description.svelte b/web/src/lib/components/asset-viewer/detail-panel-description.svelte new file mode 100644 index 0000000000..c26eab1a84 --- /dev/null +++ b/web/src/lib/components/asset-viewer/detail-panel-description.svelte @@ -0,0 +1,62 @@ + + +{#if isOwner} +
+