Skip to content

Commit c75ae63

Browse files
authored
1 parent 2188013 commit c75ae63

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

x-pack/test/upgrade_assistant_integration/upgrade_assistant/api_deprecations.ts

+10-5
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ import type {
1717
import { FtrProviderContext } from '../../common/ftr_provider_context';
1818

1919
const getApiDeprecations = (allDeprecations: DomainDeprecationDetails[]) => {
20-
return allDeprecations.filter(
21-
(deprecation) => deprecation.deprecationType === 'api'
22-
) as unknown as Array<DomainDeprecationDetails<ApiDeprecationDetails>>;
20+
return (
21+
allDeprecations
22+
.filter(
23+
(deprecation): deprecation is DomainDeprecationDetails<ApiDeprecationDetails> =>
24+
deprecation.deprecationType === 'api'
25+
)
26+
// Ensure consistent sorting
27+
.sort((a, b) => a.title.localeCompare(b.title))
28+
);
2329
};
2430

2531
export default function ({ getService }: FtrProviderContext) {
@@ -28,8 +34,7 @@ export default function ({ getService }: FtrProviderContext) {
2834
const retry = getService('retry');
2935
const es = getService('es');
3036

31-
// FLAKY: https://github.com/elastic/kibana/issues/199782
32-
describe.skip('Kibana API Deprecations', function () {
37+
describe('Kibana API Deprecations', function () {
3338
// bail on first error in this suite since cases sequentially depend on each other
3439
this.bail(true);
3540

0 commit comments

Comments
 (0)