@@ -10,7 +10,7 @@ import { FtrProviderContext } from '../../ftr_provider_context';
1010
1111// eslint-disable-next-line import/no-default-export
1212export default function ( { getService, getPageObjects } : FtrProviderContext ) {
13- const PageObjects = getPageObjects ( [ 'visualize' , 'header' , 'timePicker' ] ) ;
13+ const PageObjects = getPageObjects ( [ 'visualize' , 'lens' , ' header', 'timePicker' ] ) ;
1414 const browser = getService ( 'browser' ) ;
1515 const filterBar = getService ( 'filterBar' ) ;
1616 const appsMenu = getService ( 'appsMenu' ) ;
@@ -19,7 +19,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
1919 it ( 'should carry over time range and pinned filters to discover' , async ( ) => {
2020 await PageObjects . visualize . navigateToNewVisualization ( ) ;
2121 await PageObjects . visualize . clickVisType ( 'lens' ) ;
22- await PageObjects . timePicker . setAbsoluteRange (
22+ await PageObjects . lens . goToTimeRange (
2323 'Sep 06, 2015 @ 06:31:44.000' ,
2424 'Sep 18, 2025 @ 06:31:44.000'
2525 ) ;
@@ -33,7 +33,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
3333 } ) ;
3434
3535 it ( 'should remember time range and pinned filters from discover' , async ( ) => {
36- await PageObjects . timePicker . setAbsoluteRange (
36+ await PageObjects . lens . goToTimeRange (
3737 'Sep 07, 2015 @ 06:31:44.000' ,
3838 'Sep 19, 2025 @ 06:31:44.000'
3939 ) ;
0 commit comments