diff --git a/test/functional/apps/saved_objects_management/show_relationships.ts b/test/functional/apps/saved_objects_management/show_relationships.ts index 26fd2a00430f1..9a433fbc8a4ac 100644 --- a/test/functional/apps/saved_objects_management/show_relationships.ts +++ b/test/functional/apps/saved_objects_management/show_relationships.ts @@ -38,18 +38,18 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { const invalidRelations = await PageObjects.savedObjects.getInvalidRelations(); expect(invalidRelations).to.eql([ - { - error: 'Saved object [visualization/missing-vis-ref] not found', - id: 'missing-vis-ref', - relationship: 'Child', - type: 'visualization', - }, { error: 'Saved object [dashboard/missing-dashboard-ref] not found', id: 'missing-dashboard-ref', relationship: 'Child', type: 'dashboard', }, + { + error: 'Saved object [visualization/missing-vis-ref] not found', + id: 'missing-vis-ref', + relationship: 'Child', + type: 'visualization', + }, ]); }); }); diff --git a/test/functional/page_objects/management/saved_objects_page.ts b/test/functional/page_objects/management/saved_objects_page.ts index c33e86b42692d..f389d7b9dfe2c 100644 --- a/test/functional/page_objects/management/saved_objects_page.ts +++ b/test/functional/page_objects/management/saved_objects_page.ts @@ -271,7 +271,7 @@ export class SavedObjectsPageObject extends FtrService { relationship: await relationship.getVisibleText(), error: await error.getVisibleText(), }; - }); + }).then((result) => result.sort((a, b) => a.id.localeCompare(b.id))); } async getTableSummary() {