From 7d2fe2ddf733e841418d2fae026c68683ac2a2d0 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Mon, 25 Aug 2025 14:47:58 +0530 Subject: [PATCH] PLAYWRIGHT: fix subdomain playwright failure (#23057) * fix subdomain playwright failure * slow the beforALL * slow the afterALL * remove subdomain delete operation since we will deleteing the main one (cherry picked from commit 9db2730f42b1ab3e9985206751a869628975a5bf) --- .../e2e/Pages/SubDomainPagination.spec.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SubDomainPagination.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SubDomainPagination.spec.ts index 83c0c046d81..d1de6ca4b62 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SubDomainPagination.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/SubDomainPagination.spec.ts @@ -32,12 +32,12 @@ test.describe('SubDomain Pagination', () => { test.slow(true); test.beforeAll('Setup domain and subdomains', async ({ browser }) => { - const { page, apiContext, afterAction } = await createNewPage(browser); + test.slow(true); + + const { apiContext, afterAction } = await createNewPage(browser); await domain.create(apiContext); - await redirectToHomePage(page); - const createPromises = []; for (let i = 1; i <= SUBDOMAIN_COUNT; i++) { const subDomain = new SubDomain( @@ -55,15 +55,7 @@ test.describe('SubDomain Pagination', () => { test.afterAll('Cleanup', async ({ browser }) => { const { apiContext, afterAction } = await createNewPage(browser); - - // Delete all subdomains in parallel - const deletePromises = subDomains.map((subDomain) => - subDomain.delete(apiContext) - ); - await Promise.all(deletePromises); - await domain.delete(apiContext); - await afterAction(); });