File tree Expand file tree Collapse file tree
x-pack/test/functional/apps/monitoring Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export default function ({ getService, getPageObjects }) {
1010 const PageObjects = getPageObjects ( [ 'monitoring' , 'common' , 'header' ] ) ;
1111 const esSupertest = getService ( 'esSupertest' ) ;
1212 const noData = getService ( 'monitoringNoData' ) ;
13+ const testSubjects = getService ( 'testSubjects' ) ;
1314 const clusterOverview = getService ( 'monitoringClusterOverview' ) ;
1415 const retry = getService ( 'retry' ) ;
1516
@@ -46,8 +47,10 @@ export default function ({ getService, getPageObjects }) {
4647 } ) ;
4748
4849 // Here we are checking that once Monitoring is enabled,
49- //it moves on to the cluster overview page.
50- await retry . try ( async ( ) => {
50+ // it moves on to the cluster overview page.
51+ await retry . tryForTime ( 10000 , async ( ) => {
52+ // Click the refresh button
53+ await testSubjects . click ( 'querySubmitButton' ) ;
5154 expect ( await clusterOverview . isOnClusterOverview ( ) ) . to . be ( true ) ;
5255 } ) ;
5356 } ) ;
Original file line number Diff line number Diff line change 77import expect from '@kbn/expect' ;
88import { getLifecycleMethods } from './_get_lifecycle_methods' ;
99
10- const delay = ( ms ) => new Promise ( ( resolve ) => setTimeout ( resolve , ms ) ) ;
11-
1210export default function ( { getService, getPageObjects } ) {
1311 const PageObjects = getPageObjects ( [ 'header' , 'timePicker' ] ) ;
1412 const testSubjects = getService ( 'testSubjects' ) ;
@@ -36,12 +34,9 @@ export default function ({ getService, getPageObjects }) {
3634 expect ( isLoading ) . to . be ( true ) ;
3735 } ) ;
3836
39- it ( 'should send another request when changing the time picker' , async ( ) => {
40- /**
41- * TODO: The value should either be removed or lowered after:
42- * https://github.com/elastic/kibana/issues/72997 is resolved
43- */
44- await delay ( 3000 ) ;
37+ // TODO: [cr] I'm not sure this test is any better than the above one, we might need to rely solely on unit tests
38+ // for this functionality
39+ it . skip ( 'should send another request when changing the time picker' , async ( ) => {
4540 await PageObjects . timePicker . setAbsoluteRange (
4641 'Aug 15, 2016 @ 21:00:00.000' ,
4742 'Aug 16, 2016 @ 00:00:00.000'
You can’t perform that action at this time.
0 commit comments