Skip to content

Commit 63ae7a4

Browse files
committed
Fixed flaky entity spec (#27833)
1 parent 069c440 commit 63ae7a4

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
@@ -1009,8 +1009,11 @@ Object.entries(entities).forEach(([key, EntityClass]) => {
10091009
const clickResponse = page.waitForResponse(
10101010
(response) =>
10111011
response.url().includes('/api/v1/columns/name/') ||
1012+
(response.url().includes('/columns') &&
1013+
response.url().includes('profile') &&
1014+
response.request().method() === 'GET') ||
10121015
response.url().includes(`/api/v1/${entity.endpoint}/name/`),
1013-
{ timeout: 10000 }
1016+
{ timeout: 150000 }
10141017
);
10151018

10161019
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)