Skip to content

Commit bc6c33d

Browse files
committed
fix flaky test #83231
1 parent b8576ed commit bc6c33d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/test/functional/apps/logstash/pipeline_create.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import expect from '@kbn/expect';
8+
import { omit } from 'lodash';
89

910
export 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
});

0 commit comments

Comments
 (0)