mirror of
https://github.com/open-metadata/OpenMetadata
synced 2026-05-24 09:39:11 +00:00
fix playwright test
This commit is contained in:
parent
1ed6821b93
commit
844a8736d2
3 changed files with 5 additions and 5 deletions
|
|
@ -744,7 +744,7 @@ test.describe('Context Center', () => {
|
|||
await page.fill('[data-testid="confirmation-text-input"]', 'DELETE');
|
||||
|
||||
const deleteRes = page.waitForResponse(
|
||||
'/api/v1/contextCenter/pages/*?hardDelete=true&recursive=false'
|
||||
'/api/v1/knowledgeCenter/*?hardDelete=true&recursive=false'
|
||||
);
|
||||
await page.getByTestId('confirm-button').click();
|
||||
const res = await deleteRes;
|
||||
|
|
|
|||
|
|
@ -139,14 +139,14 @@ test.describe('Knowledge Center', () => {
|
|||
page,
|
||||
ownerNames: [user.responseData.displayName],
|
||||
activatorBtnDataTestId: 'edit-owner',
|
||||
endpoint: knowledgePageArticle.entityType as EntityTypeEndpoint,
|
||||
endpoint: 'contextCenter/pages' as EntityTypeEndpoint,
|
||||
type: 'Users',
|
||||
});
|
||||
|
||||
// remove owner
|
||||
await removeOwner({
|
||||
page,
|
||||
endpoint: knowledgePageArticle.entityType as EntityTypeEndpoint,
|
||||
endpoint: 'contextCenter/pages' as EntityTypeEndpoint,
|
||||
ownerName: user.responseData.displayName,
|
||||
type: 'Users',
|
||||
dataTestId: 'add-owner',
|
||||
|
|
@ -157,7 +157,7 @@ test.describe('Knowledge Center', () => {
|
|||
page,
|
||||
ownerNames: [user.responseData.displayName],
|
||||
activatorBtnDataTestId: 'add-owner',
|
||||
endpoint: knowledgePageArticle.entityType as EntityTypeEndpoint,
|
||||
endpoint: 'contextCenter/pages' as EntityTypeEndpoint,
|
||||
type: 'Users',
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ export const deletePage = async (
|
|||
await page.fill('[data-testid="confirmation-text-input"]', 'DELETE');
|
||||
|
||||
const deleteResponse = page.waitForResponse(
|
||||
`/api/v1/contextCenter/pages/*?hardDelete=true&recursive=${!isQuickLink}`
|
||||
`/api/v1/knowledgeCenter/*?hardDelete=true&recursive=${!isQuickLink}`
|
||||
);
|
||||
|
||||
// Register before clicking so we don't miss the response the app fires
|
||||
|
|
|
|||
Loading…
Reference in a new issue