Skip to content

Commit 60b7f16

Browse files
fix(test): child entity tests (#21836)
1 parent 631c6f5 commit 60b7f16

File tree

1 file changed

+4
-4
lines changed
  • openmetadata-ui/src/main/resources/ui/playwright/utils

1 file changed

+4
-4
lines changed

openmetadata-ui/src/main/resources/ui/playwright/utils/entity.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -593,8 +593,8 @@ export const removeTagsFromChildren = async ({
593593
.getByTestId('remove-tags')
594594
.click();
595595

596-
const putTagRequest = page.waitForResponse(
597-
(response) => response.request().method() === 'PUT'
596+
const putTagRequest = page.waitForResponse((response) =>
597+
['PUT', 'PATCH'].includes(response.request().method())
598598
);
599599

600600
await page.waitForSelector(
@@ -778,8 +778,8 @@ export const removeGlossaryTermFromChildren = async ({
778778
.locator('svg')
779779
.click();
780780

781-
const putRequest = page.waitForResponse(
782-
(response) => response.request().method() === 'PUT'
781+
const putRequest = page.waitForResponse((response) =>
782+
['PUT', 'PATCH'].includes(response.request().method())
783783
);
784784

785785
await page.waitForSelector(

0 commit comments

Comments
 (0)