From 402e58ef3674fae7a7f8e8c982c0d214e5e2bc75 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Sun, 15 Sep 2024 18:23:51 +0530 Subject: [PATCH] Playwright: fixed AUT testCases spec (#17844) --- .../resources/ui/playwright/e2e/Pages/TestCases.spec.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/TestCases.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/TestCases.spec.ts index 807b77bde3d..8ca2a41f427 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/TestCases.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/TestCases.spec.ts @@ -63,8 +63,16 @@ test('Table difference test case', async ({ page }) => { // The 'networkidle' parameter tells Playwright to wait until there are no network connections // for at least 500 ms. await page.waitForLoadState('networkidle'); + + await expect( + page + .getByTitle(table2.entityResponseData?.['fullyQualifiedName']) + .locator('div') + ).toBeVisible(); + await page .getByTitle(table2.entityResponseData?.['fullyQualifiedName']) + .locator('div') .click(); await page.fill(`#tableTestForm_params_keyColumns_0_value`, 'user_id');