Update test

This commit is contained in:
Andras Schmelczer 2026-06-02 19:13:18 +01:00
parent 50291182ae
commit 9272fd43a5
4 changed files with 5 additions and 1 deletions

View file

@ -5,7 +5,7 @@ test('renders the gallery and supports keyboard navigation', async ({
}) => { }) => {
await page.goto('/'); await page.goto('/');
await expect(page.locator('.thumbnail')).toHaveCount(54); await expect(page.locator('.thumbnail')).toHaveCount(47);
await expect(page.locator('#frame-image')).toBeVisible(); await expect(page.locator('#frame-image')).toBeVisible();
const firstAlt = await page.locator('#frame-image').getAttribute('alt'); const firstAlt = await page.locator('#frame-image').getAttribute('alt');

View file

@ -143,6 +143,10 @@
"file": "colour-41.jpg", "file": "colour-41.jpg",
"alt": "Aerial view of a hazy city skyline at sunset, with golden light rays piercing through dark clouds." "alt": "Aerial view of a hazy city skyline at sunset, with golden light rays piercing through dark clouds."
}, },
{
"file": "colour-43.jpg",
"alt": "A giant floating globe sculpture of Earth rests on water among glass office towers, with a light railway train crossing a bridge under a grey sky."
},
{ {
"file": "_DSC2821-iceland.jpg", "file": "_DSC2821-iceland.jpg",
"alt": "A steep slope of rust-coloured grass below a snow-dusted rocky peak, with a dark gravel riverbed in the foreground." "alt": "A steep slope of rust-coloured grass below a snow-dusted rocky peak, with a dark gravel riverbed in the foreground."

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 MiB

BIN
src/pictures/colour-43.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 MiB