Fix some SO tagging flaky FTR tests (#144083)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Pierre Gayvallet 2022-11-02 08:07:21 +01:00 committed by GitHub
parent cfb80060ee
commit bd6440cd7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,9 +69,9 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await listingTable.expectItemsCount('dashboard', 2);
const itemNames = await listingTable.getAllItemsNames();
expect(itemNames).to.eql([
'dashboard 4 with real data (tag-1)',
expect(itemNames.sort()).to.eql([
'dashboard 3 (tag-1 and tag-3)',
'dashboard 4 with real data (tag-1)',
]);
});
@ -80,7 +80,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await listingTable.expectItemsCount('dashboard', 2);
const itemNames = await listingTable.getAllItemsNames();
expect(itemNames).to.eql(['dashboard 2 (tag-3)', 'dashboard 3 (tag-1 and tag-3)']);
expect(itemNames.sort()).to.eql(['dashboard 2 (tag-3)', 'dashboard 3 (tag-1 and tag-3)']);
});
it('allows to filter by multiple tags', async () => {
@ -88,7 +88,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await listingTable.expectItemsCount('dashboard', 3);
const itemNames = await listingTable.getAllItemsNames();
expect(itemNames).to.eql([
expect(itemNames.sort()).to.eql([
'dashboard 1 (tag-2)',
'dashboard 2 (tag-3)',
'dashboard 3 (tag-1 and tag-3)',