diff --git a/tests/acceptance/bootstrap/SpacesContext.php b/tests/acceptance/bootstrap/SpacesContext.php index acb5e1058fc..52186c783a7 100644 --- a/tests/acceptance/bootstrap/SpacesContext.php +++ b/tests/acceptance/bootstrap/SpacesContext.php @@ -250,7 +250,7 @@ class SpacesContext implements Context { } } foreach ($spaces as $space) { - if ($space->name === $spaceName) { + if ($space->name === $spaceName && !isset($space->root->deleted)) { $found = true; $foundSpace = $space; if ($space->driveType === "project") {