Skip to content

Commit

Permalink
Update delayInS variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 committed Aug 21, 2024
1 parent 488f185 commit 661a82d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,8 @@ describe('LIVECHAT - dashboards', function () {
const response = await startANewLivechatRoomAndTakeIt({ agent: agent.credentials });
roomId = response.room._id;

const delayInS = 4;
await sleep(delayInS * 1000);
const delayInSeconds = 4;
await sleep(delayInSeconds * 1000);

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

Expand All @@ -934,15 +934,15 @@ describe('LIVECHAT - dashboards', function () {
expect(agentData).to.have.property('name', agent.user.username);
expect(agentData).to.have.property('value');
originalBestFirstResponseTimeInSeconds = moment.duration(agentData.value).asSeconds();
expect(originalBestFirstResponseTimeInSeconds).to.be.greaterThanOrEqual(delayInS);
expect(originalBestFirstResponseTimeInSeconds).to.be.greaterThanOrEqual(delayInSeconds);
});

it('should correctly calculate the best first response time for an agent and there are multiple first responses in the period', async () => {
const response = await startANewLivechatRoomAndTakeIt({ agent: agent.credentials });
roomId = response.room._id;

const delayInS = 6;
await sleep(delayInS * 1000);
const delayInSeconds = 6;
await sleep(delayInSeconds * 1000);

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

Expand Down

0 comments on commit 661a82d

Please sign in to comment.