From 635eedb31ba6a3ac1ac90e29ce9350a6b6f3ac64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loix?= Date: Tue, 22 Aug 2023 13:13:48 +0100 Subject: [PATCH] [SavedObject tagging] Fix functional test for bulk delete tags (#164321) --- .../test/saved_object_tagging/functional/tests/bulk_actions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/x-pack/test/saved_object_tagging/functional/tests/bulk_actions.ts b/x-pack/test/saved_object_tagging/functional/tests/bulk_actions.ts index f0f2d3aa980ac..d4aef2d44856f 100644 --- a/x-pack/test/saved_object_tagging/functional/tests/bulk_actions.ts +++ b/x-pack/test/saved_object_tagging/functional/tests/bulk_actions.ts @@ -29,6 +29,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { describe('bulk delete', () => { it('deletes multiple tags', async () => { + const initialDisplayedTags = await tagManagementPage.getDisplayedTagNames(); await tagManagementPage.selectTagByName('tag-1'); await tagManagementPage.selectTagByName('tag-3'); @@ -38,7 +39,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) { await tagManagementPage.waitUntilTableIsLoaded(); const displayedTags = await tagManagementPage.getDisplayedTagNames(); - expect(displayedTags.length).to.be(3); + expect(displayedTags.length).to.be(initialDisplayedTags.length - 2); expect(displayedTags).to.eql(['my-favorite-tag', 'tag with whitespace', 'tag-2']); }); });