Remove captions

This commit is contained in:
Andras Schmelczer 2026-06-02 08:51:39 +01:00
parent 4777985f40
commit 2ebe9ca46c
5 changed files with 57 additions and 129 deletions

View file

@ -7,7 +7,6 @@ const thumbnail = (id: string, order: number, alt: string): string => `
href="static/photos/${id}-2400.jpg"
data-photo-id="${id}"
data-order="${order}"
data-caption="${alt}"
data-frame-src="static/photos/${id}-2400.jpg"
data-frame-sizes="100vw"
>
@ -89,7 +88,6 @@ describe('PhotoGallery', () => {
expect(image?.alt).toBe('Second photo');
expect(image?.id).toBe('frame-image');
expect(image?.getAttribute('src')).toBe('static/photos/two-2400.jpg');
expect(frame.querySelector('figcaption')?.textContent).toBe('Second photo');
expect(
gallery
.querySelector('[data-photo-id="two"]')