Fix the AUT flakiness in NotificationAlert and ServiceIngestion specs (#23489)

(cherry picked from commit 2ec118b4db1e8fc67b9653f3a30b44c84a888f12)
This commit is contained in:
Aniket Katkar 2025-09-21 20:08:51 +05:30 committed by OpenMetadata Release Bot
parent 588029b1cb
commit fc21818a14
3 changed files with 5 additions and 11 deletions

View File

@ -259,17 +259,6 @@ test.describe('Advanced Search', { tag: '@advanced-search' }, () => {
await afterAction();
});
test.afterAll('Cleanup', async ({ browser }) => {
test.slow(true);
const { apiContext, afterAction } = await createNewPage(browser);
await EntityDataClass.postRequisitesForTests(apiContext, creationConfig);
await glossaryEntity.delete(apiContext);
await user.delete(apiContext);
await table.delete(apiContext);
await afterAction();
});
test.beforeEach(async ({ page }) => {
await redirectToHomePage(page);
await sidebarClick(page, SidebarItem.EXPLORE);

View File

@ -40,6 +40,7 @@ class ApiIngestionClass extends ServiceBaseClass {
shouldAddIngestion,
shouldAddDefaultFilters
);
this.entityFQN = `${this.serviceName}.${this.entityName} `;
}
async createService(page: Page) {

View File

@ -80,6 +80,10 @@ export const addExternalDestination = async ({
`[data-testid="destination-category-select-${destinationNumber}"]`
);
await page.waitForSelector(`.ant-select-dropdown:visible`, {
state: 'visible',
});
// Select external tab
await page.click(`[data-testid="tab-label-external"]:visible`);