From 247b8f8123534837a1b2e314b37a4af775e55cf2 Mon Sep 17 00:00:00 2001 From: Shailesh Parmar Date: Wed, 25 Sep 2024 16:42:27 +0530 Subject: [PATCH] playwright: fixed Flakiness in test cases spec --- .../main/resources/ui/playwright/e2e/Pages/TestCases.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 8bf144fadc94..aae79cbceacf 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 @@ -53,12 +53,12 @@ test('Table difference test case', async ({ page }) => { await page.getByTestId('test-case').click(); await page.getByTestId('test-case-name').fill(testCase.name); await page.getByTestId('test-type').click(); - await page.getByTitle('Compare 2 tables for').click(); const tableListSearchResponse = page.waitForResponse( `/api/v1/search/query?q=*index=table_search_index*` ); - await page.click('#tableTestForm_params_table2'); + await page.getByTitle('Compare 2 tables for').click(); await tableListSearchResponse; + await page.click('#tableTestForm_params_table2'); const tableSearchResponse = page.waitForResponse( `/api/v1/search/query?q=*${testCase.table2}*index=table_search_index*` );