diff --git a/tests/acceptance/bootstrap/FeatureContext.php b/tests/acceptance/bootstrap/FeatureContext.php index 57968283bf7..6beff4914b1 100644 --- a/tests/acceptance/bootstrap/FeatureContext.php +++ b/tests/acceptance/bootstrap/FeatureContext.php @@ -3029,4 +3029,15 @@ class FeatureContext extends BehatVariablesContext { } return false; } + + /** + * @Given the system waits for :arg1 seconds + * + * @param string $seconds + * + * @return void + */ + public function theSystemWaitsForSeconds(string $seconds): void { + \sleep((int)$seconds); + } } diff --git a/tests/acceptance/features/cliCommands/uploadSessions.feature b/tests/acceptance/features/cliCommands/uploadSessions.feature index 169cd095acb..46c936bf104 100644 --- a/tests/acceptance/features/cliCommands/uploadSessions.feature +++ b/tests/acceptance/features/cliCommands/uploadSessions.feature @@ -29,6 +29,7 @@ Feature: List upload sessions via CLI command | ANTIVIRUS_INFECTED_FILE_HANDLING | abort | And user "Alice" has uploaded file "filesForUpload/filesWithVirus/eicar.com" to "/virusFile.txt" And the config "POSTPROCESSING_DELAY" has been set to "10s" + And the system waits for "5" seconds And user "Alice" has uploaded file with content "uploaded content" to "/file1.txt" And user "Alice" has uploaded file with content "uploaded content" to "/file2.txt" When the administrator lists all the upload sessions with flag "processing"