From ccb461469de45abb2cc3dd82d66105b2ff5599c2 Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:06:43 +0530 Subject: [PATCH] fix(test): playwright flaky tests (#17980) (cherry picked from commit ad920cf0efe721fc94708a723464dc428f19aa63) --- .../src/main/resources/ui/playwright/e2e/Features/Table.spec.ts | 2 ++ .../src/main/resources/ui/playwright/e2e/dataInsightApp.ts | 1 + .../support/entity/ingestion/RedshiftWithDBTIngestionClass.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Table.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Table.spec.ts index 48577d8fcfc..bb1a3b4d904 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Table.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/Table.spec.ts @@ -21,6 +21,8 @@ test.use({ storageState: 'playwright/.auth/admin.json' }); const table1 = new TableClass(); +test.slow(true); + test.describe('Table pagination sorting search scenarios ', () => { test.beforeAll('Setup pre-requests', async ({ browser }) => { const { afterAction, apiContext } = await createNewPage(browser); diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/dataInsightApp.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/dataInsightApp.ts index aeafe14d7ac..250113d98e8 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/dataInsightApp.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/dataInsightApp.ts @@ -21,6 +21,7 @@ setup.use({ setup.describe.configure({ timeout: process.env.PLAYWRIGHT_IS_OSS ? 150000 : 5600000, + retries: 0, }); setup( diff --git a/openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/RedshiftWithDBTIngestionClass.ts b/openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/RedshiftWithDBTIngestionClass.ts index 9e688241fde..d4d906de7d9 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/RedshiftWithDBTIngestionClass.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/support/entity/ingestion/RedshiftWithDBTIngestionClass.ts @@ -51,6 +51,7 @@ class RedshiftWithDBTIngestionClass extends ServiceBaseClass { const redshiftDatabase = process.env.PLAYWRIGHT_REDSHIFT_DATABASE ?? ''; this.filterPattern = 'sales'; + this.entityFQN = `${REDSHIFT.serviceName}.${redshiftDatabase}.${this.schemaFilterPattern}.${REDSHIFT.tableName}`; this.dbtEntityFqn = `${REDSHIFT.serviceName}.${redshiftDatabase}.${this.schemaFilterPattern}.${REDSHIFT.DBTTable}`; }