mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-5992] refactor api wrappers (#3425)
* [ACS-5992] refactor api wrappers * code review fixes * review siteVisibility fix * deleting configs from index * updating breadcrumb preconditions
This commit is contained in:
@@ -35,10 +35,10 @@ import {
|
||||
FavoritesPage,
|
||||
FavoritesPageApi,
|
||||
TrashPage,
|
||||
UserActions,
|
||||
LoginPage,
|
||||
NodesApi,
|
||||
SitesApi
|
||||
SitesApi,
|
||||
users
|
||||
} from '../';
|
||||
|
||||
interface Pages {
|
||||
@@ -57,7 +57,6 @@ interface Api {
|
||||
fileAction: FileActionsApi;
|
||||
shareAction: SharedLinksApi;
|
||||
favoritesPageAction: FavoritesPageApi;
|
||||
userActions: UserActions;
|
||||
nodesApiAction: NodesApi;
|
||||
sitesApiAction: SitesApi;
|
||||
}
|
||||
@@ -89,29 +88,25 @@ export const test = base.extend<Pages & Api>({
|
||||
},
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
fileAction: async ({}, use) => {
|
||||
await use(await FileActionsApi.initialize('hruser'));
|
||||
await use(await FileActionsApi.initialize(users.hruser.username));
|
||||
},
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
shareAction: async ({}, use) => {
|
||||
await use(await SharedLinksApi.initialize('hruser'));
|
||||
await use(await SharedLinksApi.initialize(users.hruser.username));
|
||||
},
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
favoritesPageAction: async ({}, use) => {
|
||||
await use(await FavoritesPageApi.initialize('hruser'));
|
||||
},
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
userActions: async ({}, use) => {
|
||||
await use(new UserActions());
|
||||
await use(await FavoritesPageApi.initialize(users.hruser.username));
|
||||
},
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
nodesApiAction: async ({}, use) => {
|
||||
await use(await NodesApi.initialize('hruser'));
|
||||
await use(await NodesApi.initialize(users.admin.username, users.admin.password));
|
||||
},
|
||||
// eslint-disable-next-line no-empty-pattern
|
||||
sitesApiAction: async ({}, use) => {
|
||||
await use(await SitesApi.initialize('hruser'));
|
||||
await use(await SitesApi.initialize(users.hruser.username));
|
||||
},
|
||||
myLibrariesPage: async ({ page }, use) => {
|
||||
await use(new MyLibrariesPage(page));
|
||||
}
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user