Comments (8)
Sorry no.
Im desperately searching for a webComponent testing lib to integrate with our mocha setup with no avail
from showroom.
I wonder if you solved your issue.
from showroom.
Nope, sorry.
If you have any suggestions, i would love to hear them.
from showroom.
Lol... same
I totally understand your pain.
I have been searching for months.
from showroom.
@prateekjadhwani
your component does not have static get observedAttributes
and therefore does not reacts to changes in the attribute.
Could you try again?
also, anything related to DOM should not be reached from the constructor (unless there is a shadow root).
You can try reproducing this without the test runner, just start showroom and browse to localhost:3000
from showroom.
@prateekjadhwani Did that work for you?
from showroom.
Sorry @eavichay I havent tried it. I will give it a try this weekend.
Are there more examples in the documentation that I can reference? As in for complex and nested components?
from showroom.
in your showroom file /.showroom/my-component.showroom.js
add to the default export outerHTML
property with anything you want.
for example:
<div>
<my-component>
<my-nested-component></my-nested-component>
</my-component>
</div>```
Showroom will identify your component within the markup and attach listeners/commands to it. The nested component, however will not be part of the scenario. You can add custom methods to interact with it if required.
from showroom.
Related Issues (10)
- FF<66 Does not support `import()` HOT 1
- Missing dependency HOT 1
- Call a method? HOT 6
- The site doesn't work HOT 1
- Using internal properties editor strips down properties with function values HOT 1
- Documentation issues
- Feature Request: findAll HOT 9
- Bug: showroom.utils.trigger is fluffy HOT 10
- Render Container / Wrapper Overlay HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from showroom.