sashafirsov / css-chain

ApiChain and CssChain JS. Inherits collection API from element
Apache License 2.0
4 stars 0 forks source link

$(css, el) does not work in light dom #9

Closed sashafirsov closed 2 years ago

sashafirsov commented 2 years ago

instead, it returns empty chain

const el = await fixture<LightDomElement>(
            html`<light-dom-element>
                    <template>
                        <button>action</button>
                    </template>
                </light-dom-element>`
        );
        expect($('button', el).txt()).to.equal('action');