fix playwright test

This commit is contained in:
Rohit0301 2026-05-19 15:41:14 +05:30
parent 1ed6821b93
commit 844a8736d2
3 changed files with 5 additions and 5 deletions

View file

@ -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;

View file

@ -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',
});

View file

@ -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