Skip to content

Commit 62362d7

Browse files
fix: 409 entity already exist issue in DataObservabilityGovernanceTab.spec.ts (#27518)
* fix: 409 entity already exist issue in DataObservabilityGovernanceTab.spec.ts * addressing comments
1 parent 4be1757 commit 62362d7

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/DataQuality/DataObservabilityGovernanceTab.spec.ts

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ import { waitForAllLoadersToDisappear } from '../../../utils/entity';
3030

3131
test.use({ storageState: 'playwright/.auth/admin.json' });
3232

33-
const classification = new ClassificationClass();
34-
const tag = new TagClass({ classification: classification.data.name });
35-
const glossary = new Glossary();
36-
const glossaryTerm = new GlossaryTerm(glossary);
37-
const domain = new Domain();
38-
const table = new TableClass();
33+
let classification: ClassificationClass;
34+
let tag: TagClass;
35+
let glossary: Glossary;
36+
let glossaryTerm: GlossaryTerm;
37+
let domain: Domain;
38+
let table: TableClass;
3939

4040
const testCaseResult = {
4141
result: 'Found value outside expected range.',
@@ -58,6 +58,13 @@ const watchDashboardResponse = (page: Page, filterKey: string) =>
5858
test.beforeAll('setup', async ({ browser }) => {
5959
const { apiContext, afterAction } = await createNewPage(browser);
6060

61+
classification = new ClassificationClass();
62+
tag = new TagClass({ classification: classification.data.name });
63+
glossary = new Glossary();
64+
glossaryTerm = new GlossaryTerm(glossary);
65+
domain = new Domain();
66+
table = new TableClass();
67+
6168
await classification.create(apiContext);
6269
await tag.create(apiContext);
6370
await glossary.create(apiContext);

0 commit comments

Comments
 (0)