See more in assertions

If the expected and actual values make a longer message, the error message is truncated.

const fruits = ['Apples', 'Oranges', 'Pears', 'Kiwi']
cy.wrap(fruits).should('deep.equal', [
  'Oranges',
  'Grapefruits',
  'Plums',
  'Kiwi',
])

Truncated error

You can control the truncate limit, it is part of the chai.config object

Chai config object

chai.config.truncateThreshold = 200
cy.wrap(fruits).should('deep.equal', [
  'Oranges',
  'Grapefruits',
  'Plums',
  'Kiwi',
])

The full error message shows the two arrays now

The full arrays in the error message

Watch the video Increase Chai Truncate Threshold To Show More Informationopen in new window