Skip to content

isVisible() is not a function #436

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

Closed
Prior99 opened this issue Feb 20, 2018 · 9 comments
Closed

isVisible() is not a function #436

Prior99 opened this issue Feb 20, 2018 · 9 comments

Comments

@Prior99
Copy link

Prior99 commented Feb 20, 2018

Version

1.0.0-beta.11

Reproduction link

https://codesandbox.io/s/mo2r2y6j09

Steps to reproduce

Use the function isVisible() according to the documentation.

What is expected?

The test utilities check whether an element in the wrapper is visible.

What is actually happening?

A TypeError occurs:

TypeError: el.find(...).visible is not a function

This is related to #327, the method indeed exists but is called visible() and not isVisible().

@38elements
Copy link
Contributor

#425 will resolve this.

@eddyerburgh
Copy link
Member

This is fixed in beta.12

@saintplay
Copy link
Contributor

There is no type for isVisible

@eddyerburgh
Copy link
Member

Are you able to make a PR?

@ntraykov
Copy link

Hey, guys! What is the status of this issue? Is it released? I have the same issue

@TheDeveloperTom
Copy link

TheDeveloperTom commented Apr 27, 2018

I still have the problem. The last version.

Where is the "isVisible" method at all?

Look at my wrapper prototype.

image

@eddyerburgh
Copy link
Member

eddyerburgh commented Apr 27, 2018

@TheDeveloperTom Are you using @vue/test-utils?

The old vue-test-utils package is deprecated, and the latest version there is 11, which doesn't include isVisible

@TheDeveloperTom
Copy link

@eddyerburgh thank you

@gkatsanos
Copy link

expect(wrapper.find('.panel').isVisible()).to.be(false);// isVisible

Object is not a constructor (evaluating 'expect(wrapper.find('.panel').isVisible()).to.be(false)')

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

No branches or pull requests

7 participants