Skip to content

Commit 73bc646

Browse files
committed
fix glossary spec
1 parent 741e17a commit 73bc646

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ test.describe('Glossary tests', () => {
534534
);
535535
await page.fill(
536536
'[data-testid="tag-selector"] #tagsForm_tags',
537-
glossaryTerm1.data.name
537+
glossary1.data.name
538538
);
539539
await glossaryRequest;
540540

@@ -553,7 +553,7 @@ test.describe('Glossary tests', () => {
553553
);
554554
await page.fill(
555555
'[data-testid="tag-selector"] #tagsForm_tags',
556-
glossaryTerm2.data.name
556+
glossary1.data.name
557557
);
558558
await glossaryRequest2;
559559

@@ -578,7 +578,7 @@ test.describe('Glossary tests', () => {
578578

579579
// Add non mutually exclusive tags
580580
await page.click(
581-
'[data-testid="KnowledgePanel.GlossaryTerms"] [data-testid="glossary-container"] [data-testid="add-tag"]'
581+
'[data-testid="KnowledgePanel.GlossaryTerms"] [data-testid="glossary-container"] [data-testid="edit-button"]'
582582
);
583583

584584
// Select 1st term
@@ -589,7 +589,7 @@ test.describe('Glossary tests', () => {
589589
);
590590
await page.fill(
591591
'[data-testid="tag-selector"] #tagsForm_tags',
592-
glossaryTerm3.data.name
592+
glossary2.data.name
593593
);
594594
await glossaryRequest3;
595595

@@ -608,7 +608,7 @@ test.describe('Glossary tests', () => {
608608
);
609609
await page.fill(
610610
'[data-testid="tag-selector"] #tagsForm_tags',
611-
glossaryTerm4.data.name
611+
glossary2.data.name
612612
);
613613
await glossaryRequest4;
614614

@@ -648,7 +648,7 @@ test.describe('Glossary tests', () => {
648648
'[data-testid="KnowledgePanel.GlossaryTerms"] [data-testid="glossary-container"] [data-testid="glossary-icon"]'
649649
);
650650

651-
expect(await icons.count()).toBe(2);
651+
expect(await icons.count()).toBe(3);
652652

653653
// Add Glossary to Dashboard Charts
654654
await page.click(

0 commit comments

Comments
 (0)