From 067d91e1019a923c359c2d2e22d62af14ced3437 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Fri, 6 Mar 2026 17:25:43 +0100 Subject: test: change test for new cards layout --- .../kotlin/dev/dnpm/etl/processor/web/HomeControllerTest.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/integrationTest/kotlin/dev/dnpm/etl') diff --git a/src/integrationTest/kotlin/dev/dnpm/etl/processor/web/HomeControllerTest.kt b/src/integrationTest/kotlin/dev/dnpm/etl/processor/web/HomeControllerTest.kt index c2b6759..e4fab05 100644 --- a/src/integrationTest/kotlin/dev/dnpm/etl/processor/web/HomeControllerTest.kt +++ b/src/integrationTest/kotlin/dev/dnpm/etl/processor/web/HomeControllerTest.kt @@ -138,7 +138,7 @@ class HomeControllerTest { ) val page = webClient.getPage("http://localhost/") - assertThat(page.querySelectorAll("tbody tr")).hasSize(2) + assertThat(page.querySelectorAll("div.card")).hasSize(2) assertThat(page.querySelectorAll("div.notification.info")).isEmpty() } @@ -203,7 +203,7 @@ class HomeControllerTest { ) val page = webClient.getPage("http://localhost/patient/PSEUDO1") - assertThat(page.querySelectorAll("tbody tr")).hasSize(2) + assertThat(page.querySelectorAll("div.card")).hasSize(2) assertThat(page.querySelectorAll("div.notification.info")).isEmpty() } @@ -309,9 +309,9 @@ class HomeControllerTest { ) val page = webClient.getPage("http://localhost/patient/PSEUDO1") - assertThat(page.querySelectorAll("tbody tr")).hasSize(1) - assertThat(page.querySelectorAll("tbody tr > td > small").first().textContent) - .isEqualTo("NO_CONSENT") + assertThat(page.querySelectorAll("div.card")).hasSize(1) + assertThat(page.querySelectorAll("div.card div").first().textContent) + .isEqualTo("Gestoppt: Kein Consent") } } } -- cgit v1.2.3