diff --git a/extensions/amp-base-carousel/0.1/test-e2e/test-carousel.js b/extensions/amp-base-carousel/0.1/test-e2e/test-carousel.js index 77c6b2b4bd28..6a5136cbd72e 100644 --- a/extensions/amp-base-carousel/0.1/test-e2e/test-carousel.js +++ b/extensions/amp-base-carousel/0.1/test-e2e/test-carousel.js @@ -1,3 +1,5 @@ +import {sleep} from '#testing/helpers'; + import { getScrollingElement, getSlide, @@ -166,6 +168,9 @@ describes.endtoend( left: 0, }); + // Arbitrary wait because of an interaction conflict between the scroll + // action and click action. + await sleep(100); await controller.click(goToSlideBtn); await expect(controller.getElementRect(firstSlide)).to.include({left: 0}); });