File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
x-pack/test/functional/apps/logstash Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 55 */
66
77import expect from '@kbn/expect' ;
8+ import { omit } from 'lodash' ;
89
910export default function ( { getService, getPageObjects } ) {
1011 const browser = getService ( 'browser' ) ;
@@ -89,14 +90,16 @@ export default function ({ getService, getPageObjects }) {
8990 await PageObjects . logstash . gotoPipelineList ( ) ;
9091 await pipelineList . assertExists ( ) ;
9192 const originalRows = await pipelineList . readRows ( ) ;
93+ const originalRowsWithoutTime = originalRows . map ( ( row ) => omit ( row , 'lastModified' ) ) ;
9294
9395 await PageObjects . logstash . gotoNewPipelineEditor ( ) ;
9496 await pipelineEditor . clickCancel ( ) ;
9597
9698 await retry . try ( async ( ) => {
9799 await pipelineList . assertExists ( ) ;
98100 const currentRows = await pipelineList . readRows ( ) ;
99- expect ( originalRows ) . to . eql ( currentRows ) ;
101+ const currentRowsWithoutTime = currentRows . map ( ( row ) => omit ( row , 'lastModified' ) ) ;
102+ expect ( originalRowsWithoutTime ) . to . eql ( currentRowsWithoutTime ) ;
100103 } ) ;
101104 } ) ;
102105 } ) ;
You can’t perform that action at this time.
0 commit comments