fix: fixed failing tests
This commit is contained in:
parent
0fe476ef41
commit
78de618e72
1 changed files with 3 additions and 3 deletions
|
|
@ -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]') : [];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue