mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
35 lines
961 B
TypeScript
35 lines
961 B
TypeScript
/*
|
|
* Copyright © 2005 - 2023 Alfresco Software, Ltd. All rights reserved.
|
|
*
|
|
* License rights for this program may be obtained from Alfresco Software, Ltd.
|
|
* pursuant to a written agreement and any use of this program without such an
|
|
* agreement is prohibited.
|
|
*/
|
|
|
|
import { PersonalFilesPage, NodesPage } from '../page-objects';
|
|
import { test as base } from '@playwright/test';
|
|
import { ApiClientFactory } from '@alfresco/playwright-shared';
|
|
|
|
interface Pages {
|
|
personalFiles: PersonalFilesPage;
|
|
nodesPage: NodesPage;
|
|
}
|
|
|
|
interface Api {
|
|
apiClient: ApiClientFactory;
|
|
}
|
|
|
|
export const test = base.extend<Pages & Api>({
|
|
personalFiles: async ({ page }, use) => {
|
|
await use(new PersonalFilesPage(page));
|
|
},
|
|
nodesPage: async ({ page }, use) => {
|
|
await use(new NodesPage(page));
|
|
},
|
|
apiClient: async ({}, use) => {
|
|
const apiClient = new ApiClientFactory();
|
|
await apiClient.setUpAcaBackend('admin');
|
|
await use(apiClient);
|
|
}
|
|
});
|