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, BrowserActions } from '@alfresco/adf-testing';
|
||||
import { LoginPage, BrowserActions, ApplicationService } from '@alfresco/adf-testing';
|
||||
import { ProcessListDemoPage } from '../pages/adf/demo-shell/process-services/process-list-demo.page';
|
||||
import { browser } from 'protractor';
|
||||
import { AlfrescoApiCompatibility as AlfrescoApi } from '@alfresco/js-api';
|
||||
@@ -63,12 +63,14 @@ describe('Process List Test', () => {
|
||||
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
|
||||
appDateModel = await apps.importPublishDeployApp(this.alfrescoJsApi, appWithDateField.file_location);
|
||||
const applicationsService = new ApplicationService(this.alfrescoJsApi);
|
||||
|
||||
appDateModel = await applicationsService.importPublishDeployApp(appWithDateField.file_path);
|
||||
|
||||
procWithDate = await apps.startProcess(this.alfrescoJsApi, appDateModel, processName.procWithDate);
|
||||
completedProcWithDate = await apps.startProcess(this.alfrescoJsApi, appDateModel, processName.completedProcWithDate);
|
||||
|
||||
appUserWidgetModel = await apps.importPublishDeployApp(this.alfrescoJsApi, appWithUserWidget.file_location);
|
||||
appUserWidgetModel = await applicationsService.importPublishDeployApp(appWithUserWidget.file_path);
|
||||
|
||||
await apps.startProcess(this.alfrescoJsApi, appUserWidgetModel, processName.procWithUserWidget);
|
||||
completedProcWithUserWidget = await apps.startProcess(this.alfrescoJsApi, appUserWidgetModel, processName.completedProcWithUserWidget);
|
||||
|
Reference in New Issue
Block a user