diff --git a/src/components/carousel/carousel.component.ts b/src/components/carousel/carousel.component.ts index 101c1b95..2a2912bc 100644 --- a/src/components/carousel/carousel.component.ts +++ b/src/components/carousel/carousel.component.ts @@ -92,7 +92,6 @@ export default class SlCarousel extends ShoelaceElement { @state() dragging = false; private autoplayController = new AutoplayController(this, () => this.next()); - // A map containing the state of all the slides private readonly localize = new LocalizeController(this); private mutationObserver: MutationObserver; diff --git a/src/components/carousel/carousel.test.ts b/src/components/carousel/carousel.test.ts index 9f3cbfc0..18a7f342 100644 --- a/src/components/carousel/carousel.test.ts +++ b/src/components/carousel/carousel.test.ts @@ -649,7 +649,7 @@ describe('', () => { // wait scroll to actual item await oneEvent(el.scrollContainer, 'scrollend'); - await aTimeout(500); + await intersectionObserverCallbacks(); // Assert expect(previousButton).to.have.attribute('aria-disabled', 'false');