-
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
Need help with understanding Showroom #14
Comments
I wonder if you solved your issue. |
Nope, sorry. |
Sorry no. |
Lol... same |
@prateekjadhwani 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 |
@prateekjadhwani Did that work for you? |
Sorry @eavichay I havent tried it. I will give it a try this weekend. |
in your showroom file 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. |
Hi there,
I have a web component HeaderImage.js which looks something like this
And I would like to write a unit test to check the following:
altText
is getting set in the beginningsrc
is getting set in the beginningaltText
is empty string or null, the functionhandleErrors()
is getting called.I have been trying for the past few days now, and I havent been able to understand how I can check these. I was wondering if someone would be able to help me out.
I really dont know what I am doing here, but here is the code:
HeaderImage.showroom.js
file inside.showroom
folderHeaderImage.spec.js
intest
folderThe error that I see in Mocha is
I really have no clue what is going on here. And I dont know what I am missing here. Sorry :(
Any help is appreciated.
Thanks
The text was updated successfully, but these errors were encountered: