Extend notification tests scenario for different language (#6365)

This commit is contained in:
Amrita
2023-05-31 16:00:10 +05:45
committed by GitHub
parent 7094891f4d
commit 91ea910cf0
3 changed files with 61 additions and 9 deletions
@@ -104,6 +104,17 @@ class NotificationContext implements Context {
$this->featureContext->setResponse($response);
}
/**
* @Then the notifications should be empty
*
* @return void
* @throws Exception
*/
public function theNotificationsShouldBeEmpty(): void {
$notifications = $this->featureContext->getJsonDecodedResponseBodyContent()->ocs->data;
Assert::assertNull($notifications, "response should not contain any notification");
}
/**
* @Then /^the JSON response should contain a notification message with the subject "([^"]*)" and the message-details should match$/
*