Skip to content

Commit

Permalink
Assure data array shouldnt be empty in end-to-end tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbsilva137 authored Aug 21, 2024
1 parent abed53c commit 488f185
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/tests/end-to-end/api/livechat/04-dashboards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ describe('LIVECHAT - dashboards', function () {
expect(result.body).to.have.property('success', true);
expect(result.body).to.have.property('head');
expect(result.body).to.have.property('data');
expect(result.body.data).to.be.an('array');
expect(result.body.data).to.be.an('array').that.is.not.empty;

const agentData = result.body.data.find(
(agentOverviewData: { name: string; value: string }) => agentOverviewData.name === agent.user.username,
Expand Down Expand Up @@ -925,7 +925,7 @@ describe('LIVECHAT - dashboards', function () {
expect(result.body).to.have.property('success', true);
expect(result.body).to.have.property('head');
expect(result.body).to.have.property('data');
expect(result.body.data).to.be.an('array');
expect(result.body.data).to.be.an('array').that.is.not.empty;

const agentData = result.body.data.find(
(agentOverviewData: { name: string; value: string }) => agentOverviewData.name === agent.user.username,
Expand Down

0 comments on commit 488f185

Please sign in to comment.