From 7a29bf1e2ceee957c38431ff70e9515a665c5ccf Mon Sep 17 00:00:00 2001 From: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com> Date: Tue, 14 Oct 2025 15:27:21 +0530 Subject: [PATCH] fix(test): customize details page and persona flow (#23839) * fix(test): customize details page and persona flow * revert playwright config --- .../e2e/Features/CustomizeDetailPage.spec.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CustomizeDetailPage.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CustomizeDetailPage.spec.ts index fe87c6bcb87..8a5f083e129 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CustomizeDetailPage.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/CustomizeDetailPage.spec.ts @@ -10,7 +10,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { expect, Page, test as base } from '@playwright/test'; +import { test as base, expect, Page } from '@playwright/test'; import { ECustomizedDataAssets, ECustomizedGovernance, @@ -32,7 +32,6 @@ import { checkDefaultStateForNavigationTree, validateLeftSidebarWithHiddenItems, } from '../../utils/customizeNavigation'; -import { waitForAllLoadersToDisappear } from '../../utils/entity'; import { navigateToPersonaWithPagination } from '../../utils/persona'; import { settingClick } from '../../utils/sidebar'; @@ -147,10 +146,12 @@ test.describe('Persona customize UI tab', async () => { await redirectToHomePage(adminPage); // Navigate to persona page + const personaListResponse = adminPage.waitForResponse(`/api/v1/personas?*`); await settingClick(adminPage, GlobalSettingOptions.PERSONA); - await adminPage.waitForLoadState('networkidle'); - await waitForAllLoadersToDisappear(adminPage, 'skeleton-card-loader'); - await adminPage.getByText(persona.responseData.displayName).click(); + await personaListResponse; + + // Need to find persona card and click as the list might get paginated + await navigateToPersonaWithPagination(adminPage, persona.data.name, true); await adminPage.getByRole('tab', { name: 'Customize UI' }).click(); });