From 739e9bf8d111c34b90aa8ce7ab90076ba0c3304e Mon Sep 17 00:00:00 2001 From: Aniket Katkar Date: Mon, 30 Sep 2024 13:39:10 +0530 Subject: [PATCH] Mark the pipeline alert test as slow --- .../playwright/e2e/Flow/ObservabilityAlerts.spec.ts | 2 ++ .../src/main/resources/ui/playwright/utils/alert.ts | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ObservabilityAlerts.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ObservabilityAlerts.spec.ts index c17605b8b9f7..64462e71bb61 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ObservabilityAlerts.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Flow/ObservabilityAlerts.spec.ts @@ -105,6 +105,8 @@ test.describe('Observability Alert Flow', () => { }); test('Pipeline Alert', async ({ page }) => { + test.slow(); + const ALERT_NAME = generateAlertName(); await test.step('Create alert', async () => { diff --git a/openmetadata-ui/src/main/resources/ui/playwright/utils/alert.ts b/openmetadata-ui/src/main/resources/ui/playwright/utils/alert.ts index 1618c6f74b4f..5c450db653c5 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/utils/alert.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/utils/alert.ts @@ -20,6 +20,9 @@ import { } from '../constant/alert.interface'; import { DELETE_TERM } from '../constant/common'; import { SidebarItem } from '../constant/sidebar'; +import { Domain } from '../support/domain/Domain'; +import { DashboardClass } from '../support/entity/DashboardClass'; +import { UserClass } from '../support/user/UserClass'; import { clickOutside, descriptionBox, @@ -643,10 +646,10 @@ export const addMultipleFilters = async ({ dashboard, }: { page: Page; - user1; - user2; - domain; - dashboard; + user1: UserClass; + user2: UserClass; + domain: Domain; + dashboard: DashboardClass; }) => { // Add owner filter await page.click('[data-testid="add-filters"]');