Skip to content

Commit

Permalink
fix(tests): Filter out the "Note to self" conversation for more relia…
Browse files Browse the repository at this point in the history
…ble CI

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Sep 27, 2023
1 parent b3af051 commit e0e87cf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/integration/features/bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,8 @@ public function userIsParticipantOfRooms(string $user, string $shouldOrder, stri
$rooms = $this->getDataFromResponse($this->response);

$rooms = array_filter($rooms, function ($room) {
return $room['type'] !== 4;
// Filter out "Talk updates" and "Note to self" conversations
return $room['type'] !== 4 && $room['type'] !== 6;
});

if ($formData === null) {
Expand Down Expand Up @@ -314,7 +315,8 @@ public function userListsBreakoutRooms(string $user, string $identifier, int $st
$rooms = $this->getDataFromResponse($this->response);

$rooms = array_filter($rooms, function ($room) {
return $room['type'] !== 4;
// Filter out "Talk updates" and "Note to self" conversations
return $room['type'] !== 4 && $room['type'] !== 6;
});

if ($formData === null) {
Expand Down Expand Up @@ -555,7 +557,8 @@ public function userIsParticipantOfRoom(string $user, string $isOrNotParticipant
$rooms = $this->getDataFromResponse($this->response);

$rooms = array_filter($rooms, function ($room) {
return $room['type'] !== 4;
// Filter out "Talk updates" and "Note to self" conversations
return $room['type'] !== 4 && $room['type'] !== 6;
});

if ($isParticipant) {
Expand Down

0 comments on commit e0e87cf

Please sign in to comment.