diff options
| author | Paul-Christian Volkmer | 2026-03-06 17:25:43 +0100 |
|---|---|---|
| committer | Paul-Christian Volkmer | 2026-03-06 17:25:43 +0100 |
| commit | 067d91e1019a923c359c2d2e22d62af14ced3437 (patch) | |
| tree | e53bc0c725c69d8b5de885ade8cdef65fbf58a5b /src/integrationTest/kotlin/dev/dnpm/etl/processor | |
| parent | 882d65c4e2253606eb3315b37800d080fbdb94be (diff) | |
test: change test for new cards layout
Diffstat (limited to 'src/integrationTest/kotlin/dev/dnpm/etl/processor')
| -rw-r--r-- | src/integrationTest/kotlin/dev/dnpm/etl/processor/web/HomeControllerTest.kt | 10 |
1 files changed, 5 insertions, 5 deletions
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<HtmlPage>("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<HtmlPage>("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<HtmlPage>("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") } } } |
