diff --git a/x-pack/test/functional/page_objects/reporting_page.js b/x-pack/test/functional/page_objects/reporting_page.js index eab5d0603c73e..0bb9259190d83 100644 --- a/x-pack/test/functional/page_objects/reporting_page.js +++ b/x-pack/test/functional/page_objects/reporting_page.js @@ -134,7 +134,11 @@ export function ReportingPageProvider({ getService, getPageObjects }) { } async checkUsePrintLayout() { - await retry.try(() => testSubjects.click('usePrintLayout')); + // The print layout checkbox slides in as part of an animation, and tests can + // attempt to click it too quickly, leading to flaky tests. The 500ms wait allows + // the animation to complete before we attempt a click. + const menuAnimationDelay = 500; + await retry.tryForTime(menuAnimationDelay, () => testSubjects.click('usePrintLayout')); } async clickGenerateReportButton() {