From 661a82dea479d1ed3038835f4f08b16953a938b6 Mon Sep 17 00:00:00 2001 From: Matheus Barbosa Silva <36537004+matheusbsilva137@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:56:26 -0300 Subject: [PATCH] Update delayInS variable name --- .../tests/end-to-end/api/livechat/04-dashboards.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts b/apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts index 43bb201d4178..52c405d4a922 100644 --- a/apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts +++ b/apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts @@ -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); @@ -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);