Skip to content

Commit

Permalink
Update tests to use new endpoint permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
murtaza98 committed Jun 8, 2022
1 parent 95558fd commit b936d82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/meteor/tests/end-to-end/api/02-channels.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,13 @@ describe('[Channels]', function () {
before(() => updateSetting('VoIP_Enabled', true));
const createVoipRoom = async () => {
const testUser = await createUser({ roles: ['user', 'livechat-agent'] });
const testUserCredentials = await login(testUser.username, password);
const visitor = await createVisitor();
const roomResponse = await createRoom({
token: visitor.token,
type: 'v',
agentId: testUser._id,
credentials: testUserCredentials,
});
return roomResponse.body.room;
};
Expand Down

0 comments on commit b936d82

Please sign in to comment.