From 0c52af05eed125d97fb8943eebc60fbf9998150b Mon Sep 17 00:00:00 2001 From: Daniel Rozenberg Date: Tue, 10 Oct 2023 11:39:15 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9D=84=EF=B8=8F=20Deflake=20amp-carousel=20e?= =?UTF-8?q?2e=20test=20(#39530)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extensions/amp-base-carousel/0.1/test-e2e/test-carousel.js | 5 +++++ 1 file changed, 5 insertions(+) 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}); });