Skip to content

Commit f3a1f11

Browse files
authored
Flaky(UI): Test Redeploy and Audit Log (#25949)
* fixed test suit pipeline redploy * added audit log fix * address comment * removed empty space * fixed failing test and addressed comment
1 parent ac5d231 commit f3a1f11

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@ test.describe('Bulk Re-Deploy pipelines ', PLAYWRIGHT_INGESTION_TAG_OBJ, () => {
6969

7070
await expect(page.getByRole('button', { name: 'Re Deploy' })).toBeEnabled();
7171

72-
const redeployResponse = page.waitForRequest(
73-
(request) =>
74-
request.url().includes('/api/v1/services/ingestionPipelines/deploy') &&
75-
request.method() === 'POST'
76-
);
72+
const redeployResponse = page.waitForResponse('/api/v1/services/ingestionPipelines/deploy/*');
7773
await page.getByRole('button', { name: 'Re Deploy' }).click();
7874
await redeployResponse;
7975

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ import { settingClick } from '../../utils/sidebar';
1717
import { PLAYWRIGHT_BASIC_TEST_TAG_OBJ } from '../../constant/config';
1818

1919
const navigateToAuditLogsPage = async (page: Page) => {
20+
const logRequest=page.waitForResponse('/api/v1/audit/logs?*');
2021
await settingClick(page, GlobalSettingOptions.AUDIT_LOGS);
22+
await logRequest;
2123
await page.waitForSelector('[data-testid="loader"]', { state: 'detached' });
2224
};
2325

0 commit comments

Comments
 (0)