mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACA-2951]Add APS1 calls to adf testing package (#5566)
* Add APS1 calls to adf testing package * no message * Change to use AlfrescoApi instead of ApiService * Refactor process-services tests to use API calls implementation from testing package * Fix resource file * no message * Fix widget tests * Fix tests * no message * Unblocking travis
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LoginPage } from '@alfresco/adf-testing';
|
||||
import { LoginPage, ApplicationService } from '@alfresco/adf-testing';
|
||||
import { NavigationBarPage } from '../pages/adf/navigation-bar.page';
|
||||
import { ProcessServicesPage } from '../pages/adf/process-services/process-services.page';
|
||||
import { StartProcessPage } from '../pages/adf/process-services/start-process.page';
|
||||
@@ -65,8 +65,9 @@ describe('Task Assignee', () => {
|
||||
} catch (e) {}
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
const applicationsService = new ApplicationService(this.alfrescoJsApi);
|
||||
try {
|
||||
await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location, { renewIdmEntries: true });
|
||||
await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
} catch (e) {
|
||||
console.error(`failed to publish the application`);
|
||||
}
|
||||
@@ -143,7 +144,8 @@ describe('Task Assignee', () => {
|
||||
} catch (e) {}
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
const appModel = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location, { renewIdmEntries: true });
|
||||
const applicationsService = new ApplicationService(this.alfrescoJsApi);
|
||||
const appModel = await applicationsService.importPublishDeployApp(app.file_path, { renewIdmEntries: true });
|
||||
await apps.startProcess(this.alfrescoJsApi, appModel, app.processNames[1]);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user