Skip to content

Commit

Permalink
fix logstash central pipeline management test (#83281)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
kaisecheng and kibanamachine authored Nov 16, 2020
1 parent f60abf3 commit 9d40dab
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x-pack/test/functional/apps/logstash/pipeline_create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

import expect from '@kbn/expect';
import { omit } from 'lodash';

export default function ({ getService, getPageObjects }) {
const browser = getService('browser');
Expand All @@ -15,8 +16,7 @@ export default function ({ getService, getPageObjects }) {
const PageObjects = getPageObjects(['logstash']);
const retry = getService('retry');

// FLAKY: https://github.com/elastic/kibana/issues/83231
describe.skip('pipeline create new', () => {
describe('pipeline create new', () => {
let originalWindowSize;

before(async () => {
Expand Down Expand Up @@ -89,14 +89,16 @@ export default function ({ getService, getPageObjects }) {
await PageObjects.logstash.gotoPipelineList();
await pipelineList.assertExists();
const originalRows = await pipelineList.readRows();
const originalRowsWithoutTime = originalRows.map((row) => omit(row, 'lastModified'));

await PageObjects.logstash.gotoNewPipelineEditor();
await pipelineEditor.clickCancel();

await retry.try(async () => {
await pipelineList.assertExists();
const currentRows = await pipelineList.readRows();
expect(originalRows).to.eql(currentRows);
const currentRowsWithoutTime = currentRows.map((row) => omit(row, 'lastModified'));
expect(originalRowsWithoutTime).to.eql(currentRowsWithoutTime);
});
});
});
Expand Down

0 comments on commit 9d40dab

Please sign in to comment.