Skip to content

Commit a23a5c3

Browse files
[Reporting/Fn Tests] Wait longer for reports to finish (#78190)
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent 276dab4 commit a23a5c3

File tree

3 files changed

+6
-10
lines changed

3 files changed

+6
-10
lines changed

x-pack/test/reporting_api_integration/reporting_and_security/network_policy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function ({ getService }: FtrProviderContext) {
4040
filter(({ statusCode }) => statusCode === 500),
4141
map(({ message }) => message),
4242
first(),
43-
timeout(15000)
43+
timeout(120000)
4444
);
4545

4646
const reportFailed = await fails$.toPromise();

x-pack/test/reporting_api_integration/reporting_and_security/spaces.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function ({ getService }: FtrProviderContext) {
3333
tap(() => log.debug(`report at ${downloadPath} is done`)),
3434
map((response) => response.text),
3535
first(),
36-
timeout(15000)
36+
timeout(120000)
3737
);
3838
};
3939

@@ -105,8 +105,7 @@ export default function ({ getService }: FtrProviderContext) {
105105
});
106106
});
107107

108-
// FLAKY: https://github.com/elastic/kibana/issues/76551
109-
it.skip('should complete a job of PNG export of a dashboard in non-default space', async () => {
108+
it('should complete a job of PNG export of a dashboard in non-default space', async () => {
110109
const downloadPath = await reportingAPI.postJobJSON(
111110
`/s/non_default_space/api/reporting/generate/png`,
112111
{
@@ -119,8 +118,7 @@ export default function ({ getService }: FtrProviderContext) {
119118
expect(reportCompleted).to.not.be(null);
120119
});
121120

122-
// FLAKY: https://github.com/elastic/kibana/issues/76551
123-
it.skip('should complete a job of PDF export of a dashboard in non-default space', async () => {
121+
it('should complete a job of PDF export of a dashboard in non-default space', async () => {
124122
const downloadPath = await reportingAPI.postJobJSON(
125123
`/s/non_default_space/api/reporting/generate/printablePdf`,
126124
{

x-pack/test/reporting_api_integration/reporting_and_security/usage.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ export default function ({ getService }: FtrProviderContext) {
132132
reportingAPI.expectRecentJobTypeTotalStats(usage, 'printable_pdf', 0);
133133
});
134134

135-
// FLAKY: https://github.com/elastic/kibana/issues/76581
136-
it.skip('should handle preserve_layout pdf', async () => {
135+
it('should handle preserve_layout pdf', async () => {
137136
await reportingAPI.expectAllJobsToFinishSuccessfully(
138137
await Promise.all([
139138
reportingAPI.postJob(GenerationUrls.PDF_PRESERVE_DASHBOARD_FILTER_6_3),
@@ -150,8 +149,7 @@ export default function ({ getService }: FtrProviderContext) {
150149
reportingAPI.expectRecentJobTypeTotalStats(usage, 'printable_pdf', 2);
151150
});
152151

153-
// FLAKY: https://github.com/elastic/kibana/issues/76581
154-
it.skip('should handle print_layout pdf', async () => {
152+
it('should handle print_layout pdf', async () => {
155153
await reportingAPI.expectAllJobsToFinishSuccessfully(
156154
await Promise.all([
157155
reportingAPI.postJob(GenerationUrls.PDF_PRINT_DASHBOARD_6_3),

0 commit comments

Comments
 (0)