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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default settings for visible is not working properly for toClick expect #285

Closed
GuskiS opened this issue Oct 3, 2019 · 1 comment
Closed

Comments

@GuskiS
Copy link

GuskiS commented Oct 3, 2019

馃悰 Bug Report

If I do setDefaultOptions({ visible: true, timeout: 5000 }); visible is set for default options, but not being used for:
https://github.com/smooth-code/jest-puppeteer/blob/09703eaeeeab553e13142153b55030db05611f7c/packages/expect-puppeteer/src/matchers/toMatchElement.js#L7-L9

if I call:
https://github.com/smooth-code/jest-puppeteer/blob/09703eaeeeab553e13142153b55030db05611f7c/packages/expect-puppeteer/src/matchers/toClick.js#L3-L6

Expected behavior

Default visible should be used when called .toClick

@gregberge
Copy link
Member

Please upgrade to v8 and reopen submit a new issue if you experience this problem.

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

Successfully merging a pull request may close this issue.

3 participants