mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-06-23 18:05:09 +00:00
[ADF-3017]Update app (#3897)
* Add test * Added some checks to the test * Remove a method that is not used anymore * Fix lint issues * Rebase * lock file * update pacakge.json
This commit is contained in:
parent
36a150af4f
commit
ed7ce4574a
@ -41,6 +41,7 @@ describe('Modify applications', () => {
|
||||
let apps = new AppsActions();
|
||||
let modelActions = new ModelsActions();
|
||||
let firstApp, appVersionToBeDeleted;
|
||||
let model;
|
||||
|
||||
beforeAll(async (done) => {
|
||||
let users = new UsersActions();
|
||||
@ -144,4 +145,29 @@ describe('Modify applications', () => {
|
||||
expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
|
||||
});
|
||||
|
||||
it('[C260207] Should the app be updated when is edited in APS', async () => {
|
||||
let newDescription = 'new description';
|
||||
|
||||
navigationBarPage.clickProcessServicesButton();
|
||||
processServicesPage.checkApsContainer();
|
||||
|
||||
expect(processServicesPage.getAppIconType(appToBeDeleted.title)).toEqual(CONSTANTS.APP_ICON.USER);
|
||||
expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
|
||||
expect(processServicesPage.getDescription(appToBeDeleted.title)).toEqual(appToBeDeleted.description);
|
||||
|
||||
let appDefinition = {'appDefinition': {'id': appVersionToBeDeleted.id, 'name': appToBeDeleted.title,
|
||||
'description': newDescription, 'definition': {'models': [firstApp.definition.models[0]], 'theme': 'theme-4',
|
||||
'icon': 'glyphicon-user'}}, 'publish': true};
|
||||
|
||||
browser.controlFlow().execute(async () => {
|
||||
await this.alfrescoJsApi.activiti.appsApi.updateAppDefinition(appVersionToBeDeleted.id, appDefinition);
|
||||
});
|
||||
|
||||
browser.refresh();
|
||||
|
||||
expect(processServicesPage.getDescription(appToBeDeleted.title)).toEqual(newDescription);
|
||||
expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.RED);
|
||||
expect(processServicesPage.getAppIconType(appToBeDeleted.title)).toEqual(CONSTANTS.APP_ICON.USER);
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -100,12 +100,14 @@ exports.THEMING = {
|
||||
exports.APP_COLOR = {
|
||||
BLUE: "rgba(38, 154, 188, 1)",
|
||||
GREY: "rgba(105, 108, 103, 1)",
|
||||
ORANGE: "rgba(250, 185, 108, 1)"
|
||||
ORANGE: "rgba(250, 185, 108, 1)",
|
||||
RED: "rgba(199, 78, 62, 1)"
|
||||
};
|
||||
|
||||
exports.APP_ICON = {
|
||||
FAVORITE: "favorite_border",
|
||||
UNIT: "ac_unit"
|
||||
UNIT: "ac_unit",
|
||||
USER: "person"
|
||||
};
|
||||
|
||||
exports.PROCESS_END_DATE = "No date";
|
||||
|
@ -72,6 +72,7 @@ exports.Files = {
|
||||
SIMPLE_APP_WITH_USER_FORM: {
|
||||
file_location: "/resources/apps/Simple App with User Form.zip",
|
||||
title: "Simple App with User Form",
|
||||
description: "Simple app with a process having a User task with a form attached.",
|
||||
processName: "Simple Process",
|
||||
processDiagramFileLocation: '/resources/apps/SimpleAppWithUserForm.png',
|
||||
processThumbnail: '/resources/processes/Simple Process Thumbnail.png',
|
||||
|
8335
package-lock.json
generated
8335
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "alfresco-components",
|
||||
"description": "Alfresco Angular components",
|
||||
"version": "2.7.0-beta2",
|
||||
"version": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911",
|
||||
"author": "Alfresco Software, Ltd.",
|
||||
"main": "./index.js",
|
||||
"scripts": {
|
||||
@ -57,11 +57,11 @@
|
||||
"process services-cloud"
|
||||
],
|
||||
"dependencies": {
|
||||
"@alfresco/adf-content-services": "2.7.0-beta2",
|
||||
"@alfresco/adf-core": "2.7.0-beta2",
|
||||
"@alfresco/adf-insights": "2.7.0-beta2",
|
||||
"@alfresco/adf-process-services": "2.7.0-beta2",
|
||||
"@alfresco/adf-process-services-cloud": "^2.7.0-ccc52d40dd455b8bb2cd2ed9ff7bf67cea57f0bf",
|
||||
"@alfresco/adf-content-services": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911",
|
||||
"@alfresco/adf-core": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911",
|
||||
"@alfresco/adf-insights": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911",
|
||||
"@alfresco/adf-process-services": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911",
|
||||
"@alfresco/adf-process-services-cloud": "2.7.0-858584bcf0db96433770ecea50d4aaff6252e911",
|
||||
"@angular/animations": "6.1.8",
|
||||
"@angular/cdk": "6.4.7",
|
||||
"@angular/common": "6.1.8",
|
||||
@ -79,8 +79,8 @@
|
||||
"@mat-datetimepicker/moment": "2.0.1-beta.1",
|
||||
"@ngx-translate/core": "10.0.2",
|
||||
"adf-tslint-rules": "0.0.4",
|
||||
"alfresco-js-api": "2.7.0-beta2",
|
||||
"alfresco-js-api-node": "2.6.0",
|
||||
"alfresco-js-api": "2.7.0-6d1e61de7e274a14eda3fcd30efe30396889b3b0",
|
||||
"alfresco-js-api-node": "2.7.0-6d1e61de7e274a14eda3fcd30efe30396889b3b0",
|
||||
"chart.js": "2.5.0",
|
||||
"classlist.js": "1.1.20150312",
|
||||
"core-js": "^2.5.4",
|
||||
|
Loading…
x
Reference in New Issue
Block a user