Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

bahmutov opened this issue Oct 17, 2017 · 3 comments · Fixed by #5619


Copy link

@bahmutov bahmutov commented Oct 17, 2017

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


This comment has been minimized.

Copy link

@jennifer-shehane jennifer-shehane commented Jul 12, 2019

I thought this formatting may have improved in v4.0 branch of Cypress with Chai upgrade, but it hasn't. This is still an issue in 3.4.0


This comment has been minimized.

Copy link

@cypress-bot cypress-bot bot commented Nov 12, 2019

The code for this is done in cypress-io/cypress#5619, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-io cypress-io deleted a comment from cypress-bot bot Nov 25, 2019

This comment has been minimized.

Copy link

@cypress-bot cypress-bot bot commented Nov 27, 2019

Released in 3.7.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.