mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
add more e2e tests (#851)
This commit is contained in:
committed by
Denys Vuika
parent
e020dc4b77
commit
d0ff69c5dc
@@ -128,6 +128,24 @@ export class SitesApi extends RepoApi {
|
||||
return await this.alfrescoJsApi.core.sitesApi.removeSiteMember(siteId, userId);
|
||||
}
|
||||
|
||||
async requestToJoin(siteId: string) {
|
||||
const body = {
|
||||
id: siteId
|
||||
};
|
||||
await this.apiAuth();
|
||||
try {
|
||||
return await this.alfrescoJsApi.core.peopleApi.addSiteMembershipRequest('-me-', body);
|
||||
} catch (error) {
|
||||
console.log('====== requestToJoin catch ', error);
|
||||
};
|
||||
}
|
||||
|
||||
async hasMembershipRequest(siteId: string) {
|
||||
await this.apiAuth();
|
||||
const requests = (await this.alfrescoJsApi.core.peopleApi.getSiteMembershipRequests('-me-')).list.entries.map(e => e.entry.id);
|
||||
return requests.includes(siteId);
|
||||
}
|
||||
|
||||
async waitForApi(data) {
|
||||
try {
|
||||
const sites = async () => {
|
||||
|
Reference in New Issue
Block a user