Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into feat…
Browse files Browse the repository at this point in the history
…/new-user-panel-deactivated
  • Loading branch information
rique223 committed Jul 17, 2024
2 parents 733c1a5 + e248432 commit 7cb7f3e
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,22 @@ test.describe('Omnichannel close inquiry', () => {

let agent: { page: Page; poHomeOmnichannel: HomeOmnichannel };

test.beforeAll(async ({ api, browser }) => {
test.beforeAll(async ({ api }) => {
newUser = {
name: faker.person.firstName(),
email: faker.internet.email(),
};

await api.post('/settings/Livechat_Routing_Method', { value: 'Manual_Selection' }).then((res) => expect(res.status()).toBe(200));
await api.post('/livechat/users/manager', { username: 'user1' });
await api.post('/livechat/users/agent', { username: 'user1' });
await api.post('/settings/Livechat_Routing_Method', { value: 'Manual_Selection' }).then((res) => expect(res.status()).toBe(200));

const { page } = await createAuxContext(browser, Users.user1);
agent = { page, poHomeOmnichannel: new HomeOmnichannel(page) };
});
test.beforeEach(async ({ page, api }) => {

test.beforeEach(async ({ page, api, browser }) => {
poLiveChat = new OmnichannelLiveChat(page, api);

const { page: auxPage } = await createAuxContext(browser, Users.user1);
agent = { page: auxPage, poHomeOmnichannel: new HomeOmnichannel(auxPage) };
});

test.afterAll(async ({ api }) => {
Expand Down

0 comments on commit 7cb7f3e

Please sign in to comment.