Skip to content

Commit 90b6cc2

Browse files
author
liza-mae
committed
Revert back time
1 parent 472bcc2 commit 90b6cc2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

x-pack/test/upgrade/apps/dashboard/dashboard_smoke_tests.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
import expect from '@kbn/expect';
9+
import moment from 'moment';
910
import semver from 'semver';
1011
import { FtrProviderContext } from '../../ftr_provider_context';
1112

@@ -41,9 +42,12 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
4142
dashboardTests.forEach(({ name, numPanels }) => {
4243
it('should launch sample ' + name + ' data set dashboard', async () => {
4344
await PageObjects.home.launchSampleDashboard(name);
44-
await PageObjects.timePicker.setCommonlyUsedTime('Last_1 year');
4545
await PageObjects.header.waitUntilLoadingHasFinished();
4646
await renderable.waitForRender();
47+
const todayYearMonthDay = moment().format('MMM D, YYYY');
48+
const fromTime = `${todayYearMonthDay} @ 00:00:00.000`;
49+
const toTime = `${todayYearMonthDay} @ 23:59:59.999`;
50+
await PageObjects.timePicker.setAbsoluteRange(fromTime, toTime);
4751
const panelCount = await PageObjects.dashboard.getPanelCount();
4852
expect(panelCount).to.be.above(numPanels);
4953
});

0 commit comments

Comments
 (0)