fix: glucose-e2e test 13 — .eetmoment-card nth(0) ipv nth(1)

nuchter-card is aparte class, niet .eetmoment-card. nth(1) was Tussendoor
die geen glucose-inline heeft.
This commit is contained in:
cas 2026-07-24 20:02:24 +02:00
parent 3d101c4056
commit 94ce6954ff

View file

@ -1,6 +1,6 @@
const { test, expect } = require('@playwright/test'); const { test, expect } = require('@playwright/test');
const BASE = 'https://eetdagboek.vantwout.dev'; const BASE = process.env.TEST_BASE_URL || 'https://eetdagboek.vantwout.dev';
/** /**
* Helpers for glucose tests inline per eetmoment * Helpers for glucose tests inline per eetmoment
@ -313,7 +313,7 @@ test.describe('Glucose-metingen — invoer, validatie, kleurcodering, persistent
await openDiary(page); await openDiary(page);
// The Ontbijt card should be visible even without items // The Ontbijt card should be visible even without items
const ontbijtCard = page.locator('.eetmoment-card').nth(1); // 2nd card (1st is nuchter) const ontbijtCard = page.locator('.eetmoment-card').nth(0); // 1st eetmoment-card (nuchter is separate class)
// Wait for it to be in DOM // Wait for it to be in DOM
await expect(ontbijtCard).toBeVisible(); await expect(ontbijtCard).toBeVisible();