tests: Wait for post-processing to finish before editing the file
Otherwise the test is racy. The file might still be stuck in post-processing so the admin would update an empty file.
This commit is contained in:
committed by
Ralf Haferkamp
parent
288dd8c220
commit
aa44a5f6ed
@@ -675,6 +675,9 @@ class CliContext implements Context {
|
||||
* @return void
|
||||
*/
|
||||
public function theAdministratorChangesFileContent(string $content, string $file, string $user): void {
|
||||
// this downloads the file using WebDAV and by that checks if it's still in
|
||||
// postprocessing. So its effectively a check for finished postprocessing
|
||||
$this->featureContext->userDownloadsFileUsingTheAPI($user, $file);
|
||||
$userUuid = $this->featureContext->getAttributeOfCreatedUser($user, 'id');
|
||||
$storagePath = $this->getUsersStoragePath();
|
||||
$safeContent = escapeshellarg($content);
|
||||
|
||||
Reference in New Issue
Block a user