fix flaky test

This commit is contained in:
Viktor Scharf
2024-09-23 16:38:51 +02:00
parent 0a3a1e2ee6
commit 26a02bb141
2 changed files with 5 additions and 17 deletions

View File

@@ -32,7 +32,6 @@ use TestHelpers\WebDavHelper;
*/
class OcmContext implements Context {
private FeatureContext $featureContext;
private NotificationContext $notificationContext;
private string $invitationToken;
/**
@@ -53,18 +52,6 @@ class OcmContext implements Context {
$environment = $scope->getEnvironment();
// Get all the contexts you need in this context from here
$this->featureContext = $environment->getContext('FeatureContext');
$this->notificationContext = $environment->getContext('NotificationContext');
}
/**
* Delete all the inbucket emails
*
* @AfterScenario @email
*
* @return void
*/
public function clearInbucketMessages():void {
$this->notificationContext->clearInbucketMessages();
}
/**
@@ -124,7 +111,6 @@ class OcmContext implements Context {
$responseData = \json_decode($response->getBody()->getContents(), true, 512, JSON_THROW_ON_ERROR);
if (isset($responseData["token"])) {
$this->invitationToken = $responseData["token"];
print_r($this->invitationToken . " token");
}
return $response;
}