fix: fixed failing tests

This commit is contained in:
Danny Moerkerke 2022-08-11 15:09:00 +02:00
parent 0fe476ef41
commit 78de618e72

View file

@ -22,7 +22,7 @@ const basicAccordion = html`
* @param {Element} el
*/
function getAccordionChildren(el) {
const slot = el.shadowRoot?.querySelector('slot[name=accordion]');
const slot = el.shadowRoot?.querySelector('slot[name=_accordion]');
return slot ? slot.children : [];
}
@ -31,7 +31,7 @@ function getAccordionChildren(el) {
* @param {Element} el
*/
function getInvokers(el) {
const slot = el.shadowRoot?.querySelector('slot[name=accordion]');
const slot = el.shadowRoot?.querySelector('slot[name=_accordion]');
return slot ? slot.querySelectorAll('[slot=invoker]') : [];
}
@ -40,7 +40,7 @@ function getInvokers(el) {
* @param {Element} el
*/
function getContents(el) {
const slot = el.shadowRoot?.querySelector('slot[name=accordion]');
const slot = el.shadowRoot?.querySelector('slot[name=_accordion]');
return slot ? slot.querySelectorAll('[slot=content]') : [];
}