summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2023-02-24 22:49:38 +0100
committerJoas Schilling <coding@schilljs.com>2023-02-24 22:49:38 +0100
commit1d5fdaee222ed8ed3588485995f752e24b292e57 (patch)
tree0fa23e8bf731e9c0887955e4d5b76f76a38e9aa3 /tests
parent47b05ac0215bfe8f65e399f1cec4c7d903aca58b (diff)
fix(CI): Also use unordered comparison for the automatic assignment
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php7
-rw-r--r--tests/integration/features/conversation/breakout-rooms.feature6
2 files changed, 10 insertions, 3 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 602c5d1c7..8f2c83bbf 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -332,6 +332,13 @@ class FeatureContext implements Context, SnippetAcceptingContext {
$expected = $formData->getHash();
if ($shouldOrder) {
$sorter = static function (array $roomA, array $roomB): int {
+ if (str_starts_with($roomA['name'], '/')) {
+ return 1;
+ }
+ if (str_starts_with($roomB['name'], '/')) {
+ return -1;
+ }
+
$idA = $roomA['id'] ?? self::$identifierToId[$roomA['name']];
$idB = $roomB['id'] ?? self::$identifierToId[$roomB['name']];
diff --git a/tests/integration/features/conversation/breakout-rooms.feature b/tests/integration/features/conversation/breakout-rooms.feature
index 77247570b..4c1c8d0cb 100644
--- a/tests/integration/features/conversation/breakout-rooms.feature
+++ b/tests/integration/features/conversation/breakout-rooms.feature
@@ -96,15 +96,15 @@ Feature: conversation/breakout-rooms
| actorType | actorId | participantType |
| users | participant1 | 1 |
| users | /^participant\d$/ | 3 |
- Then user "participant2" is participant of the following rooms (v4)
+ Then user "participant2" is participant of the following unordered rooms (v4)
| type | name |
| 2 | class room |
| 2 | /^Room \d$/ |
- Then user "participant3" is participant of the following rooms (v4)
+ Then user "participant3" is participant of the following unordered rooms (v4)
| type | name |
| 2 | class room |
| 2 | /^Room \d$/ |
- Then user "participant4" is participant of the following rooms (v4)
+ Then user "participant4" is participant of the following unordered rooms (v4)
| type | name |
| 2 | class room |
| 2 | /^Room \d$/ |