Skip to content

Commit

Permalink
Fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnXLivingston committed Jan 17, 2024
1 parent 44b91ac commit 8110a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/muc-views/tests/muc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2394,7 +2394,7 @@ describe("Groupchats", function () {
}).c("query", {"xmlns": "http://jabber.org/protocol/muc#admin"})
_converse.api.connection.get()._dataRecv(mock.createRequest(result));
await u.waitUntil(() => view.querySelectorAll('.occupant').length, 500);
await u.waitUntil(() => view.querySelectorAll('.badge').length > 1);
await u.waitUntil(() => view.querySelectorAll('.badge').length > 2);
expect(view.model.occupants.length).toBe(2);
expect(view.querySelectorAll('.occupant').length).toBe(2);
}));
Expand Down

0 comments on commit 8110a7f

Please sign in to comment.