Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Nov 6, 2023
1 parent 146e905 commit d22b69a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/meteor/tests/end-to-end/api/livechat/05-inquiries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ describe('LIVECHAT - inquiries', function () {
describe('livechat/inquiries.queuedForUser', () => {
let testUser: { user: IUser; credentials: { [key: string]: string } };
before(async () => {
await updateSetting('Livechat_accept_chats_with_no_agents', true);
const user = await createUser();
await createAgent(user.username);
const credentials2 = await login(user.username, password);
Expand All @@ -229,6 +230,7 @@ describe('LIVECHAT - inquiries', function () {
};
});
after(async () => {
await updateSetting('Livechat_accept_chats_with_no_agents', false);
await deleteUser(testUser.user._id);
});
it('should return an "unauthorized error" when the user does not have the necessary permission', async () => {
Expand Down Expand Up @@ -456,7 +458,7 @@ describe('LIVECHAT - inquiries', function () {
const response = parseMethodResponse(body);
expect(response.result).to.be.true;
});
it('should appear on users queued elements', async () => {
(IS_EE ? it : it.skip)('should appear on users queued elements', async () => {
const { body } = await request
.get(api('livechat/inquiries.queuedForUser'))
.set(testUser.credentials)
Expand Down

0 comments on commit d22b69a

Please sign in to comment.