From d39b5dff3c38efac2fa33499b5e792701b6af686 Mon Sep 17 00:00:00 2001 From: Niek Otten Date: Fri, 24 Jul 2026 12:09:09 +0200 Subject: [PATCH] fix(test): match the catalogus zaaktype cell exactly, not case-insensitively (refs #130) --- tests/e2e/catalogus.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/e2e/catalogus.spec.ts b/tests/e2e/catalogus.spec.ts index 42a19c5..d7876c5 100644 --- a/tests/e2e/catalogus.spec.ts +++ b/tests/e2e/catalogus.spec.ts @@ -14,6 +14,8 @@ test('a beheerder sees the published zaaktypen in the catalogus', async ({ page await expect(page.getByRole('heading', { name: /Catalogus/i })).toBeVisible(); - // The seeded, published BIG zaaktype is shown by its business identificatie. - await expect(page.getByText('BIG-REGISTRATIE')).toBeVisible(); + // The seeded, published BIG zaaktype is shown by its business identificatie. Match the cell + // exactly (case-sensitive): getByText is case-insensitive, so it would also match the omschrijving + // cell "BIG-registratie" and trip strict mode. + await expect(page.getByRole('cell', { name: 'BIG-REGISTRATIE', exact: true })).toBeVisible(); });