♻️ Unskip and fix tests (#143931)

This commit is contained in:
Marco Liberati 2022-10-25 14:50:13 +02:00 committed by GitHub
parent 37454b7b9f
commit 8ec679878b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1789,9 +1789,7 @@ describe('IndexPattern Data Source', () => {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/143908
// FLAKY: https://github.com/elastic/kibana/issues/143907
describe.skip('#clearLayer', () => {
describe('#clearLayer', () => {
it('should clear a layer', () => {
const state = {
layers: {
@ -1817,6 +1815,7 @@ describe('IndexPattern Data Source', () => {
columnOrder: [],
columns: {},
linkToLayers: ['some-layer'],
sampling: 1,
},
},
},
@ -1845,7 +1844,7 @@ describe('IndexPattern Data Source', () => {
newState: {
...state,
layers: {
first: state.layers.first,
first: { ...state.layers.first, linkToLayers: undefined, sampling: 1 },
},
},
});