Skip to content

Incorrectly formatted log message for "have.all.keys" assertion #753

@bahmutov

Description

@bahmutov

All versions of Cypress when making this assertion

it('expect - assert shape of an object', function(){
  const person = {
    name: 'Joe',
    age: 20
  }
  expect(person).to.have.all.keys('name', 'age')
})

Look at the reporter message - looks very weird

have all keys

I added example test to cypress-io/cypress-example-kitchensink#17

Metadata

Metadata

Assignees

Labels

pkg/reporterThis is due to an issue in the packages/reporter directorytype: bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions