wait 5 seconds for search index to complete (#7707)

This commit is contained in:
Sawjan Gurung
2023-11-13 21:01:46 +05:45
committed by GitHub
parent a9366caa0c
commit 3653df5f96

View File

@@ -148,8 +148,9 @@ class TagContext implements Context {
* @throws Exception
*/
public function theUserGetsAllAvailableTags(string $user):void {
// after creating or deleting tags, in some cases tags do not appear or disappear immediately, so we use waiting
sleep(1);
// Note: after creating or deleting tags, in some cases tags do not appear or disappear immediately,
// So wait is necessary before listing tags
sleep(5);
$this->featureContext->setResponse(
GraphHelper::getTags(
$this->featureContext->getBaseUrl(),