Skip to content

Commit

Permalink
Fix glossary spec flakiness with Assets count verification step `Rena…
Browse files Browse the repository at this point in the history
…me the same entity again`
  • Loading branch information
aniketkatkar97 committed Aug 13, 2024
1 parent 19edd03 commit 5c2737d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* limitations under the License.
*/
import test, { expect } from '@playwright/test';
import { toString } from 'lodash';
import { SidebarItem } from '../../constant/sidebar';
import { DashboardClass } from '../../support/entity/DashboardClass';
import { TableClass } from '../../support/entity/TableClass';
Expand Down Expand Up @@ -426,7 +427,11 @@ test.describe('Glossary tests', () => {
await redirectToHomePage(page);
await sidebarClick(page, SidebarItem.GLOSSARY);
await selectActiveGlossary(page, glossary1.data.displayName);
await goToAssetsTab(page, glossaryTerm1.data.displayName);
await goToAssetsTab(
page,
glossaryTerm1.data.displayName,
toString(assets.length)
);
await renameGlossaryTerm(page, glossaryTerm1, newName);
await verifyGlossaryTermAssets(
page,
Expand Down

0 comments on commit 5c2737d

Please sign in to comment.