mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACS-8064] Migrate actions-favorites tests to Playwright (#3871)
* ACS-8064 Migrate actions-favorites tests to Playwright
This commit is contained in:
@@ -115,4 +115,16 @@ export class FavoritesPageApi {
|
||||
return await Utils.retryCall(favoriteFiles);
|
||||
} catch {}
|
||||
}
|
||||
|
||||
async removeFavoritesByIds(username: string, ids: string[]): Promise<void> {
|
||||
try {
|
||||
if (ids && ids.length > 0) {
|
||||
for (const id of ids) {
|
||||
await this.apiService.favorites.deleteFavorite(username, id);
|
||||
}
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('FavoritesApi: removeFavoritesByIds failed ', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user