Skip to content
This repository was archived by the owner on Feb 4, 2018. It is now read-only.

how to test projection via slots #17

Closed
Hotell opened this issue Mar 6, 2017 · 2 comments
Closed

how to test projection via slots #17

Hotell opened this issue Mar 6, 2017 · 2 comments
Labels

Comments

@Hotell
Copy link
Contributor

Hotell commented Mar 6, 2017

we are dealing with question how to test projected content via slots
wc-catalogue/blaze-elements#238

Just wanted to ask how do you do it within atlassian. Any suggestions are more than welcome!

@Hotell Hotell added the question label Mar 6, 2017
@Hotell
Copy link
Contributor Author

Hotell commented Mar 6, 2017

on thing that comes to mind is assignedSlot or assignedNodes() but that dosn't work in browsers which are using polyfill for shadow dom https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom#workwithslots

@treshugart
Copy link
Member

As discussed IRL, the best thing to do here is probably to only go as far as to test to ensure the slots you expect to exist, are there. If you test slotting, then you're testing things that should already be tested by the polyfills and browsers.

Will close this, but if there's anything else to action here, let's address it!

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

No branches or pull requests

2 participants