test: Fix broken scenario

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2025-04-11 17:28:12 +02:00
commit 8b602ba7d2
No known key found for this signature in database
GPG key ID: F72FA5B49FFA96B0
2 changed files with 3 additions and 5 deletions

View file

@ -174,6 +174,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
public function setUp() {
self::$identifierToToken = [];
self::$identifierToId = [];
self::$botNameToId = [];
self::$tokenToIdentifier = [];
self::$sessionIdToUser = [
'cli' => 'cli',
@ -4443,7 +4444,7 @@ class FeatureContext implements Context, SnippetAcceptingContext {
}
/**
* @When /^user "([^"]*)" set status to "([^"]*)" with (\d+)(?: \((v1)\))?$/
* @When /^user "([^"]*)" sets? status to "([^"]*)" with (\d+)(?: \((v1)\))?$/
*/
public function setUserStatus(string $user, string $status, int $statusCode, string $apiVersion = 'v1'): void {
$this->setCurrentUser($user);

View file

@ -85,15 +85,12 @@ Feature: callapi/notifications
Given user "participant1" joins room "room" with 200 (v4)
Given user "participant2" joins room "room" with 200 (v4)
Given user "participant1" loads attendees attendee ids in room "room" (v4)
And user "participant2" sets status to "dnd" with 200 (v4)
And user "participant2" sets status to "dnd" with 200 (v1)
Given user "participant1" joins call "room" with 200 (v4)
| silent | true |
Then user "participant2" has the following notifications
| app | object_type | object_id | subject |
Given user "participant1" pings user "participant2" to join call "room" with 400 (v4)
Then the request is rejected with the following error message
| status | message |
| 400 | status |
Scenario: Lobby: No call notification sent for users that are blocked by the lobby
Given user "participant1" creates room "room" (v4)