Skip to content

Commit ce4fee9

Browse files
[Reporting] Unskip flaky test when downloading CSV with "no data" (#105252) (#106210)
* unskipped test and added additional checks when using time picker * rather wait for the timepicker to close * set up test for flaky test runner * Additional .only * Remove .only Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Jean-Louis Leysens <[email protected]>
1 parent d7072ea commit ce4fee9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/functional/page_objects/time_picker.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ export class TimePickerPageObject extends FtrService {
132132
await this.testSubjects.click('superDatePickerAbsoluteTab');
133133
await this.testSubjects.click('superDatePickerAbsoluteDateInput');
134134
await this.inputValue('superDatePickerAbsoluteDateInput', fromTime);
135+
await this.browser.pressKeys(this.browser.keys.ESCAPE);
136+
137+
await this.retry.waitFor('Timepicker popover to close', async () => {
138+
return !(await this.testSubjects.exists('superDatePickerAbsoluteDateInput'));
139+
});
135140

136141
const superDatePickerApplyButtonExists = await this.testSubjects.exists(
137142
'superDatePickerApplyTimeButton'

x-pack/test/functional/apps/discover/reporting.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
7373
});
7474
});
7575

76-
// FLAKY: https://github.com/elastic/kibana/issues/104372
77-
describe.skip('Generate CSV: new search', () => {
76+
describe('Generate CSV: new search', () => {
7877
beforeEach(async () => {
7978
await kibanaServer.importExport.load(ecommerceSOPath);
8079
await PageObjects.common.navigateToApp('discover');

0 commit comments

Comments
 (0)