From 18ee1429268f4683c8e4ee5db375a58129544f27 Mon Sep 17 00:00:00 2001
From: Anthony Malkoun <anthony.malkoun@dpc.vic.gov.au>
Date: Mon, 24 May 2021 21:33:33 +1000
Subject: [PATCH] cherry pick es7 code from #30

---
 tests/behat/features/search.feature | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/behat/features/search.feature b/tests/behat/features/search.feature
index c0c6c89..7c6d52a 100644
--- a/tests/behat/features/search.feature
+++ b/tests/behat/features/search.feature
@@ -63,4 +63,6 @@ Feature: Ensure Search API on Bay Elasticsearch work.
     Then the response status code should be 200
     And the response should be in JSON
     And the JSON node "hits" should exist
-    And the JSON node "hits.total" should be equal to "0"
+    And the JSON node "hits.total" should exist
+    And the JSON node "hits.total.value" should exist
+    And the JSON node "hits.total.value" should be equal to "0"