Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion x-pack/test/functional/page_objects/reporting_page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down