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

TypeError on my tests #33

Open
ELopQ opened this issue Aug 30, 2021 · 0 comments
Open

TypeError on my tests #33

ELopQ opened this issue Aug 30, 2021 · 0 comments

Comments

@ELopQ
Copy link

ELopQ commented Aug 30, 2021

I'm writing integration tests and some test are failing because this plugin, i'm getting the following error:
TypeError: Cannot set property 'testid' of undefined at OffCanvas.createOffCanvasRoot (node_modules/react-aria-offcanvas/dist/OffCanvas.js:199:44) at new OffCanvas (node_modules/react-aria-offcanvas/dist/OffCanvas.js:208:11)

if I comment the next line from OffCanvas.js -> _defineProperty, all the test pass:
_this.offCanvasRoot.dataset.testid = 'offcanvas-portal';

What can I do to be able to pass all the tests?
Thank you so much!

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

1 participant