Skip to content

Commit b60fd1e

Browse files
Rohit0301anuj-kumary
authored andcommitted
Fixed RestoredEntityEnheritedFields playwright failure (#27193)
(cherry picked from commit a0d5ff7)
1 parent 6adcf4a commit b60fd1e

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

  • openmetadata-ui/src/main/resources/ui/playwright/utils

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,9 +1962,18 @@ export const restoreEntity = async (page: Page) => {
19621962

19631963
await page.click('[data-testid="manage-button"]');
19641964
await page.click('[data-testid="restore-button"]');
1965+
1966+
const restoreResponse = page.waitForResponse(
1967+
(response) =>
1968+
response.url().includes('/restore') &&
1969+
response.request().method() === 'PUT'
1970+
);
1971+
19651972
await page.click('button:has-text("Restore")');
19661973

1967-
await toastNotification(page, /restored successfully/);
1974+
const response = await restoreResponse;
1975+
1976+
expect(response.status()).toBe(200);
19681977

19691978
const exists = await page
19701979
.locator('[data-testid="deleted-badge"]')

0 commit comments

Comments
 (0)