Skip to content

Commit

Permalink
send message as forwarded agent in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Dec 13, 2024
1 parent f61a406 commit e3dc5a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,8 @@ describe('LIVECHAT - dashboards', function () {
expect(res.body).to.have.property('success', true);
});

await sendAgentMessage(roomId, 'first response from forwarded agent', agent.credentials);

const today = moment().startOf('day').format('YYYY-MM-DD');
const result = await request
.get(api('livechat/analytics/agent-overview'))
Expand Down Expand Up @@ -1187,6 +1189,8 @@ describe('LIVECHAT - dashboards', function () {
expect(res.body).to.have.property('success', true);
});

await sendAgentMessage(roomId, 'first response from forwarded agent', agent.credentials);

const today = moment().startOf('day').format('YYYY-MM-DD');
const result = await request
.get(api('livechat/analytics/agent-overview'))
Expand Down

0 comments on commit e3dc5a4

Please sign in to comment.