mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-30 19:36:41 +00:00
Merge branch 'main' into fix-superset-form-bug
This commit is contained in:
commit
aa14c938e0
@ -78,16 +78,6 @@ test.describe('Ingestion Bot ', () => {
|
|||||||
await afterAction();
|
await afterAction();
|
||||||
});
|
});
|
||||||
|
|
||||||
test.afterAll('Cleanup pre-requests', async ({ browser }) => {
|
|
||||||
const { apiContext, afterAction } = await performAdminLogin(browser);
|
|
||||||
await Promise.all([
|
|
||||||
domain1.delete(apiContext),
|
|
||||||
domain2.delete(apiContext),
|
|
||||||
domain3.delete(apiContext),
|
|
||||||
]);
|
|
||||||
await afterAction();
|
|
||||||
});
|
|
||||||
|
|
||||||
test.beforeEach('Visit entity details page', async ({ page }) => {
|
test.beforeEach('Visit entity details page', async ({ page }) => {
|
||||||
await redirectToHomePage(page);
|
await redirectToHomePage(page);
|
||||||
});
|
});
|
||||||
@ -105,7 +95,6 @@ test.describe('Ingestion Bot ', () => {
|
|||||||
|
|
||||||
await test.step('Assign assets to domains', async () => {
|
await test.step('Assign assets to domains', async () => {
|
||||||
// Add assets to domain 1
|
// Add assets to domain 1
|
||||||
await redirectToHomePage(page);
|
|
||||||
await sidebarClick(page, SidebarItem.DOMAIN);
|
await sidebarClick(page, SidebarItem.DOMAIN);
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('[data-testid="loader"]', {
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
@ -115,7 +104,6 @@ test.describe('Ingestion Bot ', () => {
|
|||||||
await addAssetsToDomain(page, domain1, domainAsset1);
|
await addAssetsToDomain(page, domain1, domainAsset1);
|
||||||
|
|
||||||
// Add assets to domain 2
|
// Add assets to domain 2
|
||||||
await redirectToHomePage(page);
|
|
||||||
await sidebarClick(page, SidebarItem.DOMAIN);
|
await sidebarClick(page, SidebarItem.DOMAIN);
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('[data-testid="loader"]', {
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
@ -128,8 +116,6 @@ test.describe('Ingestion Bot ', () => {
|
|||||||
await test.step(
|
await test.step(
|
||||||
'Ingestion bot should access domain assigned assets',
|
'Ingestion bot should access domain assigned assets',
|
||||||
async () => {
|
async () => {
|
||||||
await redirectToHomePage(ingestionBotPage);
|
|
||||||
|
|
||||||
// Check if entity page is accessible & it has domain
|
// Check if entity page is accessible & it has domain
|
||||||
for (const asset of domainAsset1) {
|
for (const asset of domainAsset1) {
|
||||||
await redirectToHomePage(ingestionBotPage);
|
await redirectToHomePage(ingestionBotPage);
|
||||||
@ -173,7 +159,6 @@ test.describe('Ingestion Bot ', () => {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Add assets to domain 2
|
// Add assets to domain 2
|
||||||
await redirectToHomePage(page);
|
|
||||||
await sidebarClick(page, SidebarItem.DOMAIN);
|
await sidebarClick(page, SidebarItem.DOMAIN);
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('[data-testid="loader"]', {
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
@ -168,17 +168,24 @@ test.describe('Search Preview test', () => {
|
|||||||
state: 'detached',
|
state: 'detached',
|
||||||
});
|
});
|
||||||
|
|
||||||
const searchInput = page.getByTestId('searchbar');
|
|
||||||
const previewRes = page.waitForResponse('/api/v1/search/preview');
|
|
||||||
await searchInput.fill(table1.entity.name);
|
|
||||||
await previewRes;
|
|
||||||
|
|
||||||
const descriptionField = page.getByTestId(
|
const descriptionField = page.getByTestId(
|
||||||
`field-configuration-panel-description`
|
`field-configuration-panel-description`
|
||||||
);
|
);
|
||||||
await descriptionField.click();
|
await descriptionField.click();
|
||||||
await setSliderValue(page, 'field-weight-slider', 68);
|
await setSliderValue(page, 'field-weight-slider', 68);
|
||||||
await descriptionField.click();
|
|
||||||
|
const previewResponse = page.waitForResponse('/api/v1/search/preview');
|
||||||
|
await page.getByTestId('highlight-field-switch').click();
|
||||||
|
await previewResponse;
|
||||||
|
|
||||||
|
await expect(page.getByTestId('highlight-field-switch')).toHaveAttribute(
|
||||||
|
'aria-checked',
|
||||||
|
'false'
|
||||||
|
);
|
||||||
|
|
||||||
|
const searchInput = page.getByTestId('searchbar');
|
||||||
|
await searchInput.fill(table1.entity.name);
|
||||||
|
await previewResponse;
|
||||||
|
|
||||||
await page.waitForLoadState('networkidle');
|
await page.waitForLoadState('networkidle');
|
||||||
await page.waitForSelector('[data-testid="loader"]', {
|
await page.waitForSelector('[data-testid="loader"]', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user