Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -338,20 +338,6 @@ test.describe('Glossary Status Filter - Nested Terms', () => {
await verifyTermVisible(page, basicChild.data.displayName);
});

// Skip: Requires backend to return nested terms as flat results when filtered
// eslint-disable-next-line playwright/no-skipped-test -- requires backend flat result support
test.skip('filter by child status shows child as flat result even if parent does not match', async ({
page,
}) => {
await applyStatusFilter(page, ['Draft']);

// Parent has Approved status, should NOT be visible
await verifyTermNotVisible(page, basicParent.data.displayName);

// Child is Draft - it should appear as a flat result in the filtered view
await verifyTermVisible(page, basicChild.data.displayName);
});

test('filter shows parent when status matches and all children on expand', async ({
page,
}) => {
Expand Down Expand Up @@ -406,40 +392,6 @@ test.describe('Glossary Status Filter - Nested Terms', () => {
// Parent should be visible even though it's Draft (children loaded without filter)
await verifyTermVisible(page, multiParent.data.displayName);
});

// Skip: Requires backend to return nested terms as flat results when filtered
// eslint-disable-next-line playwright/no-skipped-test -- requires backend flat result support
test.skip('filter by middle level status shows nested term as flat result', async ({
page,
}) => {
await applyStatusFilter(page, ['Draft']);

// Parent has Draft status - should appear as flat result
await verifyTermVisible(page, multiParent.data.displayName);

// Grandparent is Approved, should NOT be visible with Draft filter
await verifyTermNotVisible(page, multiGrandparent.data.displayName);

// Child is In Review, should NOT be visible with Draft filter
await verifyTermNotVisible(page, multiChild.data.displayName);
});

// Skip: Requires backend to return nested terms as flat results when filtered
// eslint-disable-next-line playwright/no-skipped-test -- requires backend flat result support
test.skip('filter by leaf level status shows nested term as flat result', async ({
page,
}) => {
await applyStatusFilter(page, ['In Review']);

// Child has In Review status - should appear as flat result
await verifyTermVisible(page, multiChild.data.displayName);

// Grandparent is Approved, should NOT be visible
await verifyTermNotVisible(page, multiGrandparent.data.displayName);

// Parent is Draft, should NOT be visible
await verifyTermNotVisible(page, multiParent.data.displayName);
});
});

// ==================== SEARCH + STATUS FILTER TESTS ====================
Expand Down Expand Up @@ -520,9 +472,7 @@ test.describe('Glossary Status Filter - Nested Terms', () => {
await verifyTermVisible(page, basicChild.data.displayName);
});

// Skip: Requires re-filtering expanded state which isn't fully implemented
// eslint-disable-next-line playwright/no-skipped-test -- requires re-filtering expanded state support
test.skip('change filter while expanded updates visible root terms', async ({
test('change filter while expanded updates visible root terms', async ({
page,
}) => {
// Expand parent first with All filter
Expand Down Expand Up @@ -558,24 +508,6 @@ test.describe('Glossary Status Filter - Nested Terms', () => {
// ==================== EDGE CASES ====================

test.describe('Edge Cases', () => {
// Skip: Requires backend to return nested terms as flat results when filtered
// eslint-disable-next-line playwright/no-skipped-test -- requires backend flat result support
test.skip('deeply nested term (5 levels) - filter shows matching terms as flat results', async ({
page,
}) => {
// Filter by Draft status
await applyStatusFilter(page, ['Draft']);

// Level 1 (Draft) should appear as flat result regardless of nesting
await verifyTermVisible(page, deepTerms[1].data.displayName);

// Other levels should NOT be visible (different statuses)
await verifyTermNotVisible(page, deepTerms[0].data.displayName); // Approved
await verifyTermNotVisible(page, deepTerms[2].data.displayName); // In Review
await verifyTermNotVisible(page, deepTerms[3].data.displayName); // Rejected
await verifyTermNotVisible(page, deepTerms[4].data.displayName); // Deprecated
});

test('all children have same status different from parent', async ({
page,
}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,103 +129,6 @@ test.describe(
});
});

// Skipped: /data-marketplace/* sub-routes removed in PR #27377; re-enable when the standalone marketplace shell is reintroduced.
test.skip('Search returns results and clicking navigates to entity', async ({
page,
}) => {
test.slow();

await test.step('Navigate to marketplace', async () => {
await navigateToMarketplace(page);
});

await test.step('Search for a data product', async () => {
await searchMarketplace(page, dp4.data.displayName);
const resultItem = page.getByTestId(
`search-result-dp-${dp4.responseData.id}`
);
await expect(resultItem).toBeVisible();
});

await test.step('Click data product result and verify navigation', async () => {
const resultItem = page.getByTestId(
`search-result-dp-${dp4.responseData.id}`
);
await resultItem.dispatchEvent('click');
await page.waitForURL('**/data-marketplace/data-products/**');
});

await test.step('Navigate back and search for a domain', async () => {
await navigateToMarketplace(page);
await searchMarketplace(page, domain4.data.displayName);
await expect(
page.getByTestId(`search-result-domain-${domain4.responseData.id}`)
).toBeVisible();
});

await test.step('Click domain result and verify navigation', async () => {
const resultItem = page.getByTestId(
`search-result-domain-${domain4.responseData.id}`
);
await resultItem.dispatchEvent('click');
await page.waitForURL('**/data-marketplace/domains/**');
});
});

test.skip('Widget card click navigates to entity detail page', async ({
page,
}) => {
test.slow();

await test.step('Navigate to marketplace', async () => {
await navigateToMarketplace(page);
});

await test.step('Click data product card and verify navigation', async () => {
const dpWidget = page.getByTestId('marketplace-dp-widget');
const dpCard = dpWidget
.locator('[data-testid^="marketplace-dp-card-"]')
.first();
await expect(dpCard).toBeVisible();
await dpCard.click();
await page.waitForURL('**/data-marketplace/data-products/**');
});

await test.step('Navigate back and click domain card', async () => {
await navigateToMarketplace(page);
const domainsWidget = page.getByTestId('marketplace-domains-widget');
const domainCard = domainsWidget
.locator('[data-testid^="marketplace-domain-card-"]')
.first();
await expect(domainCard).toBeVisible();
await domainCard.click();
await page.waitForURL('**/data-marketplace/domains/**');
});
});

test.skip('View All links navigate correctly', async ({ page }) => {
test.slow();

await test.step('Navigate to marketplace', async () => {
await navigateToMarketplace(page);
});

await test.step('Click View All Data Products and verify', async () => {
const viewAllDp = page.getByTestId('view-all-data-products');
await expect(viewAllDp).toBeVisible();
await viewAllDp.click();
await page.waitForURL('**/data-marketplace/data-products**');
});

await test.step('Navigate back and click View All Domains', async () => {
await navigateToMarketplace(page);
const viewAllDomains = page.getByTestId('view-all-domains');
await expect(viewAllDomains).toBeVisible();
await viewAllDomains.click();
await page.waitForURL('**/data-marketplace/domains**');
});
});

test('Admin can create a data product via marketplace drawer', async ({
page,
}) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,34 +105,5 @@ test.describe(
await expect(dpItem).toBeVisible();
});
});

test.skip('Clicking announcement navigates to entity page', async ({
page,
}) => {
test.slow();

await test.step('Navigate to marketplace', async () => {
await navigateToMarketplace(page);
});

await test.step('Click domain announcement and verify navigation', async () => {
const announcementItem = page.getByTestId(
`announcement-item-${domainAnnouncementId}`
);
await expect(announcementItem).toBeVisible();
await announcementItem.click();
await page.waitForURL('**/data-marketplace/domains/**');
});

await test.step('Navigate back and click data product announcement', async () => {
await navigateToMarketplace(page);
const announcementItem = page.getByTestId(
`announcement-item-${dpAnnouncementId}`
);
await expect(announcementItem).toBeVisible();
await announcementItem.click();
await page.waitForURL('**/data-marketplace/data-products/**');
});
});
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import { performAdminLogin } from '../../utils/admin';
import {
navigateToMarketplace,
searchMarketplace,
verifyGreetingBanner,
} from '../../utils/dataMarketplace';
import { waitForAllLoadersToDisappear } from '../../utils/entity';
Expand All @@ -39,7 +38,7 @@
await page.close();
},
consumerPage: async ({ browser }, use) => {
const page = await browser.newPage();

Check warning on line 41 in openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/DataMarketplacePermissions.spec.ts

View workflow job for this annotation

GitHub Actions / checkstyle

Prefer the `page` fixture (test.use({ storageState })) over browser.newPage() + manual login for single-user admin tests. For multi-user tests that need a second non-admin page, this warning is expected — no action needed
await consumerUser.login(page);
await use(page);
await page.close();
Expand Down Expand Up @@ -130,31 +129,5 @@
await verifyGreetingBanner(consumerPage, name);
});
});

test.skip('Data consumer can search and view results', async ({
consumerPage,
}) => {
test.slow();

await test.step('Navigate to marketplace as consumer', async () => {
await consumerPage.goto('/data-marketplace');
await waitForAllLoadersToDisappear(consumerPage);
});

await test.step('Search and verify results appear', async () => {
await searchMarketplace(consumerPage, dp.data.displayName);
await expect(
consumerPage.getByTestId(`search-result-dp-${dp.responseData.id}`)
).toBeVisible();
});

await test.step('Click result and verify navigation', async () => {
const resultItem = consumerPage.getByTestId(
`search-result-dp-${dp.responseData.id}`
);
await resultItem.dispatchEvent('click');
await consumerPage.waitForURL('**/data-marketplace/data-products/**');
});
});
}
);
Original file line number Diff line number Diff line change
Expand Up @@ -1375,7 +1375,7 @@
browser,
}) => {
// Create page and set up mocked WebSocket BEFORE navigation
const page = await browser.newPage();

Check warning on line 1378 in openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts

View workflow job for this annotation

GitHub Actions / checkstyle

Prefer the `page` fixture (test.use({ storageState })) over browser.newPage() + manual login for single-user admin tests. For multi-user tests that need a second non-admin page, this warning is expected — no action needed
await setupMockedWebSocket(page);

// Login on this page (WebSocket is fully mocked, no real server connection)
Expand Down Expand Up @@ -1462,7 +1462,7 @@
test.slow(true);

// Create page and set up mocked WebSocket BEFORE navigation
const page = await browser.newPage();

Check warning on line 1465 in openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts

View workflow job for this annotation

GitHub Actions / checkstyle

Prefer the `page` fixture (test.use({ storageState })) over browser.newPage() + manual login for single-user admin tests. For multi-user tests that need a second non-admin page, this warning is expected — no action needed
await setupMockedWebSocket(page);

// Login on this page
Expand Down Expand Up @@ -1968,9 +1968,7 @@
}
});

// Need to fix the workflow from BE end, as it constantly failing in the AUT's
// eslint-disable-next-line playwright/no-skipped-test -- skipped: backend workflow issue
test.skip('Term should stay approved when changes made by reviewer', async ({
test('Term should stay approved when changes made by reviewer', async ({
browser,
}) => {
test.slow(true);
Expand Down
Loading