From 0e9c32cdb8bbeac3faaf6354a800bcd702d9780c Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Fri, 10 Jan 2025 17:23:23 +0530 Subject: [PATCH] PLAYWRIGHT: fix flaky playwright test (#19309) * fix user detail flaky playwright test * fix the glossary flaky by adding await due to timeout --- .../main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts | 2 ++ .../resources/ui/playwright/e2e/Pages/UserDetails.spec.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts index 74f7f1565ad4..cb41b0dcedb1 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Glossary.spec.ts @@ -806,6 +806,8 @@ test.describe('Glossary tests', () => { test('Assign Glossary Term to entity and check assets', async ({ browser, }) => { + test.slow(true); + const { page, afterAction, apiContext } = await performAdminLogin(browser); const table = new TableClass(); const glossary1 = new Glossary(); diff --git a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/UserDetails.spec.ts b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/UserDetails.spec.ts index cb96de489273..b89c2298347a 100644 --- a/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/UserDetails.spec.ts +++ b/openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/UserDetails.spec.ts @@ -163,7 +163,9 @@ test.describe('User with different Roles', () => { state: 'visible', }); - await userPage.locator(descriptionBox).clear(); + await userPage.click(descriptionBox); + await userPage.keyboard.press('ControlOrMeta+A'); + await userPage.keyboard.press('Backspace'); await expect(userPage.locator(descriptionBox)).not.toContainText( 'Name of the User'