From 614fcca4403789c2859c4ece536e81f591b3f0e4 Mon Sep 17 00:00:00 2001 From: nirajacharya2 <122071597+nirajacharya2@users.noreply.github.com> Date: Wed, 26 Jul 2023 14:12:58 +0545 Subject: [PATCH] added extra 4 second to wait until getting tags request is send (#6848) --- tests/acceptance/features/bootstrap/TagContext.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/features/bootstrap/TagContext.php b/tests/acceptance/features/bootstrap/TagContext.php index d5f47331e7..25be97258f 100644 --- a/tests/acceptance/features/bootstrap/TagContext.php +++ b/tests/acceptance/features/bootstrap/TagContext.php @@ -138,9 +138,17 @@ class TagContext implements Context { foreach ($rows as $row) { $responseArray = $this->featureContext->getJsonDecodedResponse($this->featureContext->getResponse())['value']; if ($shouldOrNot === "not") { - Assert::assertFalse(\in_array($row[0], $responseArray), "the response should not contain the tag $row[0]"); + Assert::assertFalse( + \in_array($row[0], $responseArray), + "the response should not contain the tag $row[0].\nResponse\n" + . print_r($responseArray, true) + ); } else { - Assert::assertTrue(\in_array($row[0], $responseArray), "the response does not contain the tag $row[0]"); + Assert::assertTrue( + \in_array($row[0], $responseArray), + "the response does not contain the tag $row[0].\nResponse\n" + . print_r($responseArray, true) + ); } } }