Skip to content

Commit 01936b6

Browse files
authored
Fixed flaky entity spec (#27833)
1 parent 4bb3573 commit 01936b6

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages

openmetadata-ui/src/main/resources/ui/playwright/e2e/Pages/Entity.spec.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,8 +1013,11 @@ Object.entries(entities).forEach(([key, EntityClass]) => {
10131013
const clickResponse = page.waitForResponse(
10141014
(response) =>
10151015
response.url().includes('/api/v1/columns/name/') ||
1016+
(response.url().includes('/columns') &&
1017+
response.url().includes('profile') &&
1018+
response.request().method() === 'GET') ||
10161019
response.url().includes(`/api/v1/${entity.endpoint}/name/`),
1017-
{ timeout: 10000 }
1020+
{ timeout: 150000 }
10181021
);
10191022

10201023
await firstLink.click();
@@ -1062,8 +1065,11 @@ Object.entries(entities).forEach(([key, EntityClass]) => {
10621065
const intermediateClickResponse = page.waitForResponse(
10631066
(response) =>
10641067
response.url().includes('/api/v1/columns/name/') ||
1068+
(response.url().includes('/columns') &&
1069+
response.url().includes('profile') &&
1070+
response.request().method() === 'GET') ||
10651071
response.url().includes(`/api/v1/${entity.endpoint}/name/`),
1066-
{ timeout: 10000 }
1072+
{ timeout: 150000 }
10671073
);
10681074

10691075
await intermediateLink.click();

0 commit comments

Comments
 (0)