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

cy.contains() should log found element when el found but options don't #52

Closed
jennifer-shehane opened this issue Jul 6, 2015 · 1 comment
Labels
type: unexpected behavior User expected result, but got another

Comments

@jennifer-shehane
Copy link
Member

If an element within cy.contains() is found, but does not meet the requirements of the options, the element found should be shown in the applied to area of the console. Currently when I click to log the element, it shows the applied to as the contain's scoped DOM element.

Example Code

it"does not display Back button", ->
  cy.get("#form-header-region").contains("Back", {visible: false})

Commands Log
screen shot 2015-07-06 at 1 56 37 pm

Console
screen shot 2015-07-06 at 1 59 53 pm

@jennifer-shehane jennifer-shehane added the type: unexpected behavior User expected result, but got another label Jul 6, 2015
@brian-mann
Copy link
Member

Fixed in 0.9.4.

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
panzarino pushed a commit that referenced this issue Sep 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: unexpected behavior User expected result, but got another
Projects
None yet
Development

No branches or pull requests

2 participants