added extra 4 second to wait until getting tags request is send (#6848)

This commit is contained in:
nirajacharya2
2023-07-26 14:12:58 +05:45
committed by GitHub
parent 21af4b3d6d
commit 614fcca440

View File

@@ -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)
);
}
}
}