Skip to content
Snippets Groups Projects
Unverified Commit 3cd8f201 authored by Murtaza Patrawala's avatar Murtaza Patrawala Committed by GitHub
Browse files

Regression: Fix breaking omnichannel tests (#26305)

parent ca50f0fb
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,9 @@ describe('LIVECHAT - Agents', function () {
// TODO: missing test cases for POST method
describe('livechat/users/:type', () => {
it('should return an "unauthorized error" when the user does not have the necessary permission', (done) => {
updatePermission('view-l-room', [])
updatePermission('edit-omnichannel-contact', [])
.then(() => updatePermission('transfer-livechat-guest', []))
.then(() => updatePermission('manage-livechat-agents', []))
.then(() => {
request
.get(api('livechat/users/agent'))
......@@ -59,7 +60,7 @@ describe('LIVECHAT - Agents', function () {
});
});
it('should return an array of agents', (done) => {
updatePermission('view-l-room', ['admin'])
updatePermission('edit-omnichannel-contact', ['admin'])
.then(() => updatePermission('transfer-livechat-guest', ['admin']))
.then(() => {
request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment