From 6b58e002b7a0bbdb247b5d95c3da91b0dbd8efe6 Mon Sep 17 00:00:00 2001 From: Matthias Wilhelm Date: Wed, 27 Dec 2023 17:29:27 +0100 Subject: [PATCH] Fix another test --- .../reporting/__snapshots__/download_csv.snap | 2 +- .../dashboard/group3/reporting/download_csv.ts | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap b/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap index e15ea268d6056..126947dd748b1 100644 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap +++ b/x-pack/test/functional/apps/dashboard/group3/reporting/__snapshots__/download_csv.snap @@ -709,7 +709,7 @@ exports[`dashboard Reporting Download CSV Default Saved Search Data Downloads a exports[`dashboard Reporting Download CSV Field Formatters and Scripted Fields Download CSV export of a saved search panel 1`] = ` "date,\\"_id\\",name,gender,value,year,\\"years_ago\\",\\"date_informal\\" -\\"Jan 1, 1982 @ 01:00:00.000\\",\\"1982-Fethany-F\\",Fethany,F,780,1982,\\"37.00000000000000000000\\",\\"Jan 1st 82\\" +\\"Jan 1, 1982 @ 00:00:00.000\\",\\"1982-Fethany-F\\",Fethany,F,780,1982,\\"37.00000000000000000000\\",\\"Jan 1st 82\\" " `; diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts b/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts index 99095c58b3e5d..dca798672310a 100644 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts +++ b/x-pack/test/functional/apps/dashboard/group3/reporting/download_csv.ts @@ -67,7 +67,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { await testSubjects.existOrFail('csvDownloadStarted'); // validate toast panel }; - describe.only('Download CSV', () => { + describe('Download CSV', () => { before('initialize tests', async () => { log.debug('ReportingPage:initTests'); await browser.setWindowSize(1600, 850); @@ -81,7 +81,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { } }); - describe.only('Default Saved Search Data', () => { + describe('Default Saved Search Data', () => { before(async () => { await reporting.initEcommerce(); await navigateToDashboardApp(); @@ -140,7 +140,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); }); - describe.only('Filtered Saved Search', () => { + describe('Filtered Saved Search', () => { const TEST_SEARCH_TITLE = 'Customer Betty'; const TEST_DASHBOARD_TITLE = 'Filtered Search Data'; const from = 'Jun 20, 2019 @ 23:56:51.374'; @@ -172,19 +172,17 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) { }); }); - describe.only('Field Formatters and Scripted Fields', () => { + describe('Field Formatters and Scripted Fields', () => { const dashboardWithScriptedFieldsSearch = 'names dashboard'; before(async () => { await reporting.initLogs(); await esArchiver.load('x-pack/test/functional/es_archives/reporting/hugedata'); - + const from = 'Nov 26, 1981 @ 21:54:15.526'; + const to = 'Mar 5, 1982 @ 18:17:44.821'; + await PageObjects.common.setTime({ from, to }); await navigateToDashboardApp(); await PageObjects.dashboard.loadSavedDashboard(dashboardWithScriptedFieldsSearch); - await PageObjects.timePicker.setAbsoluteRange( - 'Nov 26, 1981 @ 21:54:15.526', - 'Mar 5, 1982 @ 18:17:44.821' - ); await PageObjects.common.sleep(1000); await filterBar.addFilter({ field: 'name.keyword', operation: 'is', value: 'Fethany' });