mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
refactor pagination e2e (#1312)
* wrap test suites in functions * better naming and small improvements * higher suite that calls the wrapped test functions
This commit is contained in:
committed by
Cilibiu Bogdan
parent
4e7595f7b2
commit
653be8bbcd
@@ -120,7 +120,7 @@ export class SitesApi extends RepoApi {
|
||||
return this.createSite(title, SITE_VISIBILITY.MODERATED, description, siteId);
|
||||
}
|
||||
|
||||
async createSites(titles: string[], visibility?: string) {
|
||||
async createSites(titles: string[], visibility?: string): Promise<any> {
|
||||
try {
|
||||
return titles.reduce(async (previous: any, current: any) => {
|
||||
await previous;
|
||||
@@ -131,6 +131,10 @@ export class SitesApi extends RepoApi {
|
||||
}
|
||||
}
|
||||
|
||||
async createSitesPrivate(siteNames: string[]): Promise<any> {
|
||||
return this.createSites(siteNames, SITE_VISIBILITY.PRIVATE)
|
||||
}
|
||||
|
||||
async deleteSite(siteId: string, permanent: boolean = true) {
|
||||
try {
|
||||
await this.apiAuth();
|
||||
|
Reference in New Issue
Block a user