-
Notifications
You must be signed in to change notification settings - Fork 7
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
Bug: showroom.utils.trigger is fluffy #11
Comments
Can you share your code + the .showroom file? |
Of course:
|
I can’t share the code of the component itself, it’s property of the company where I work :( |
Can you share the test part that is failing? |
Hey, I did an simplified example where this issue can be reproduced: https://github.com/msteller-connyun/showroom-test just execute:
After this issue is fluffy it my not fail the first time, try to run |
Perhaps adding in your package.json |
Hey, the tests are fluffy, that means that it sometimes works and sometimes not. Mostly, the first time it works. If I execute the test immediately a second time it’s mostly broken. If it’s broken I have to wait some time, before it’s working again. Yes, probably npm run build could fix the issue, because if there is a small break between the tests it works (mostly). This is similar to my setTimeout workaround. Please execute And yes, in the showroom GUI it’s working always. It’s a test-only issue. |
Will check further |
I'm having the same issue. It is difficult to reproduce locally but happens more often than not in my CI builds. Ex. https://circleci.com/gh/evtaylor/functional-lit-element/20 |
Using
showroom.utils.trigger('myFunction')
is fluffy and leads sometimes (especially if I repeat the test in short intervals) to the error:This seems to be a timing issue. Workaround:
The text was updated successfully, but these errors were encountered: