Skip to content

Commit

Permalink
fix functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 committed Jun 18, 2020
1 parent 7845804 commit 23a3615
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/test/functional/apps/lens/persistent_context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { FtrProviderContext } from '../../ftr_provider_context';

// eslint-disable-next-line import/no-default-export
export default function ({ getService, getPageObjects }: FtrProviderContext) {
const PageObjects = getPageObjects(['visualize', 'header', 'timePicker']);
const PageObjects = getPageObjects(['visualize', 'lens', 'header', 'timePicker']);
const browser = getService('browser');
const filterBar = getService('filterBar');
const appsMenu = getService('appsMenu');
Expand All @@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('should carry over time range and pinned filters to discover', async () => {
await PageObjects.visualize.navigateToNewVisualization();
await PageObjects.visualize.clickVisType('lens');
await PageObjects.timePicker.setAbsoluteRange(
await PageObjects.lens.goToTimeRange(
'Sep 06, 2015 @ 06:31:44.000',
'Sep 18, 2025 @ 06:31:44.000'
);
Expand All @@ -33,7 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});

it('should remember time range and pinned filters from discover', async () => {
await PageObjects.timePicker.setAbsoluteRange(
await PageObjects.lens.goToTimeRange(
'Sep 07, 2015 @ 06:31:44.000',
'Sep 19, 2025 @ 06:31:44.000'
);
Expand Down

0 comments on commit 23a3615

Please sign in to comment.