@@ -36,9 +36,7 @@ const mainApiRequestsToIntercept = [
3636
3737const mainAliasNames = mainApiRequestsToIntercept . map ( ( { aliasName } ) => `@${ aliasName } ` ) ;
3838
39- // Failing: See https://github.com/elastic/kibana/issues/219711
40- // Failing: See https://github.com/elastic/kibana/issues/219712
41- describe . skip ( 'Service Inventory' , ( ) => {
39+ describe ( 'Service Inventory' , ( ) => {
4240 before ( ( ) => {
4341 const { rangeFrom, rangeTo } = timeRange ;
4442 synthtrace . index (
@@ -103,7 +101,7 @@ describe.skip('Service Inventory', () => {
103101 cy . getByTestSubj ( 'comboBoxOptionsList environmentFilter-optionsList' ) . should ( 'be.visible' ) ;
104102 cy . getByTestSubj ( 'comboBoxOptionsList environmentFilter-optionsList' )
105103 . contains ( 'button' , 'production' )
106- . click ( ) ;
104+ . click ( { force : true } ) ;
107105
108106 cy . expectAPIsToHaveBeenCalledWith ( {
109107 apisIntercepted : mainAliasNames ,
@@ -112,8 +110,6 @@ describe.skip('Service Inventory', () => {
112110 } ) ;
113111
114112 it ( 'when selecting a different time range and clicking the update button' , ( ) => {
115- cy . wait ( mainAliasNames ) ;
116-
117113 cy . selectAbsoluteTimeRange (
118114 moment ( timeRange . rangeFrom ) . subtract ( 5 , 'm' ) . toISOString ( ) ,
119115 moment ( timeRange . rangeTo ) . subtract ( 5 , 'm' ) . toISOString ( )
@@ -156,9 +152,6 @@ describe.skip('Service Inventory', () => {
156152 to : new Date ( rangeTo ) . getTime ( ) ,
157153 } )
158154 ) ;
159- } ) ;
160-
161- beforeEach ( ( ) => {
162155 cy . loginAsViewerUser ( ) ;
163156 } ) ;
164157
@@ -170,10 +163,8 @@ describe.skip('Service Inventory', () => {
170163 cy . intercept ( 'POST' , '/internal/apm/services/detailed_statistics?*' ) . as (
171164 'detailedStatisticsRequest'
172165 ) ;
173- cy . intercept ( 'GET' , '/internal/apm/services?*' ) . as ( 'mainStatisticsRequest' ) ;
174166
175167 cy . visitKibana ( `${ serviceInventoryHref } &pageSize=10&sortField=serviceName&sortDirection=asc` ) ;
176- cy . wait ( '@mainStatisticsRequest' ) ;
177168 cy . contains ( 'Services' ) ;
178169 cy . get ( '.euiPagination__list' ) . children ( ) . should ( 'have.length' , 5 ) ;
179170 cy . wait ( '@detailedStatisticsRequest' ) . then ( ( payload ) => {
0 commit comments