Skip to content

Commit

Permalink
Fix bulk delete tags functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
sebelga committed Aug 21, 2023
1 parent dbb252b commit 923b9be
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 923b9be

Please sign in to comment.