Skip to content

Commit

Permalink
[Reporting] Fix flaky download pdf test (#105210)
Browse files Browse the repository at this point in the history
* added a retry for checking that we are on the dashboard landing page

* added .only and removed .skip

* remove .only

* revert this: added .only for flaky test runner

* Remove .only

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
jloleysens and kibanamachine authored Jul 14, 2021
1 parent 1fe4135 commit 8fb5633
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions x-pack/test/functional/apps/reporting/reporting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const pageObjects = getPageObjects(['dashboard', 'common', 'reporting']);
const es = getService('es');
const esArchiver = getService('esArchiver');
const retry = getService('retry');

// FLAKY: https://github.com/elastic/kibana/issues/102722
describe.skip('Reporting', function () {
describe('Reporting', function () {
this.tags(['smoke', 'ciGroup2']);
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/packaging');
Expand All @@ -33,6 +33,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
this.timeout(180000);

await pageObjects.common.navigateToApp('dashboards');
await retry.waitFor('dashboard landing page', async () => {
return await pageObjects.dashboard.onDashboardLandingPage();
});
await pageObjects.dashboard.loadSavedDashboard('dashboard');
await pageObjects.reporting.openPdfReportingPanel();
await pageObjects.reporting.clickGenerateReportButton();
Expand Down

0 comments on commit 8fb5633

Please sign in to comment.