mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
test: Fix broken scenario
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
3248559c72
commit
8b602ba7d2
2 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue