From c4874a8b3bf2713770ef68f03e2d91c562bc13e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20J=C3=B8rgen=20Skogstad?= Date: Wed, 6 Nov 2024 11:46:25 +0100 Subject: [PATCH] e2e --- tests/k6/tests/serviceowner/dialogSearch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/k6/tests/serviceowner/dialogSearch.js b/tests/k6/tests/serviceowner/dialogSearch.js index eb98fbfe1..ef6e949ec 100644 --- a/tests/k6/tests/serviceowner/dialogSearch.js +++ b/tests/k6/tests/serviceowner/dialogSearch.js @@ -207,9 +207,7 @@ export default function () { let r = getSO('dialogs/' + defaultFilter + '&EndUserId=' + invalidEndUserId + '&ServiceResource=' + auxResource); expectStatusFor(r).to.equal(200); expect(r, 'response').to.have.validJsonBody(); - let response = r.json(); - expect(response, 'response json').to.have.property("items"); - expect(response.items, 'items').to.have.lengthOf(0); + expect(r.json(), 'response json').not.to.have.property("items"); }) describe("Cleanup", () => {