Skip to content

Commit

Permalink
[SavedObject tagging] Fix functional test for bulk delete tags (#164321)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga authored Aug 22, 2023
1 parent 7ece4e5 commit 635eedb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand All @@ -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']);
});
});
Expand Down

0 comments on commit 635eedb

Please sign in to comment.