From 3653df5f960758e284c43b51ce7eee0b27feecd1 Mon Sep 17 00:00:00 2001 From: Sawjan Gurung Date: Mon, 13 Nov 2023 21:01:46 +0545 Subject: [PATCH] wait 5 seconds for search index to complete (#7707) --- tests/acceptance/features/bootstrap/TagContext.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/acceptance/features/bootstrap/TagContext.php b/tests/acceptance/features/bootstrap/TagContext.php index 1c34637db0..3ae457cc32 100644 --- a/tests/acceptance/features/bootstrap/TagContext.php +++ b/tests/acceptance/features/bootstrap/TagContext.php @@ -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(),