Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

feat: log yielded elements #41

Merged
merged 2 commits into from
May 26, 2020
Merged

feat: log yielded elements #41

merged 2 commits into from
May 26, 2020

Conversation

badeball
Copy link
Contributor

This behaves in the same way as cy.get in that it avoids logging an array when a single element is yielded [1-2].

[1] https://github.com/cypress-io/cypress/blob/v3.3.1/packages/driver/src/cy/commands/querying.coffee#L111
[2] https://github.com/cypress-io/cypress/blob/v3.3.1/packages/driver/src/dom/elements.js#L625-L627

I haven't added any tests for this, as there aren't any for when the result are of primitive type either.

Copy link
Contributor

@bahmutov bahmutov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@bahmutov bahmutov merged commit 1efe42e into cypress-io:master May 26, 2020
@bahmutov
Copy link
Contributor

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants