Skip to content

Commit

Permalink
yet another cr
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Aug 26, 2024
1 parent f911045 commit 437f6a8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { createFakeVisitor } from '../../mocks/data';
import { createAuxContext } from '../fixtures/createAuxContext';
import { Users } from '../fixtures/userStates';
import { HomeOmnichannel, OmnichannelLiveChat } from '../page-objects';
import { setSettingValueById } from '../utils';
import { createAgent } from '../utils/omnichannel/agents';
import { test, expect } from '../utils/test';

Expand Down Expand Up @@ -108,13 +109,13 @@ test.describe.serial('OC - Livechat - Visitors closing the room is disabled', ()
});

test.beforeAll(async ({ browser, api }) => {
await api.post('/settings/Omnichannel_allow_visitors_to_close_conversation', { value: false });
await setSettingValueById(api, 'Livechat_allow_visitor_closing_chat', false);
const { page: omniPage } = await createAuxContext(browser, Users.user1, '/', true);
poHomeOmnichannel = new HomeOmnichannel(omniPage);
});

test.afterAll(async ({ api }) => {
await api.post('/settings/Omnichannel_allow_visitors_to_close_conversation', { value: true });
await setSettingValueById(api, 'Livechat_allow_visitor_closing_chat', true);
await api.delete('/livechat/users/agent/user1');
await poLiveChat.page.close();
});
Expand Down

0 comments on commit 437f6a8

Please sign in to comment.