Skip to content

Commit

Permalink
[Saved Objects] Provide stable sorting to the rows extracted from UI (e…
Browse files Browse the repository at this point in the history
…lastic#187545)

## Summary

Per the title

Close elastic#179977
  • Loading branch information
jloleysens authored Jul 8, 2024
1 parent ab3c76d commit 809a83d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,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',
},
]);
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export class SavedObjectsPageObject extends FtrService {
error: await error.getVisibleText(),
};
})
);
).then((result) => result.sort((a, b) => a.id.localeCompare(b.id)));
}

async getTableSummary() {
Expand Down

0 comments on commit 809a83d

Please sign in to comment.