mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
GH Auto: Upstream dependencies ADF:9.1.0-16939056653 JS-API:10.1.0-16939056653 using Tag:9.1.0-16939056653 (#4739)
This commit is contained in:
60
package-lock.json
generated
60
package-lock.json
generated
@@ -9,11 +9,11 @@
|
||||
"version": "8.0.0",
|
||||
"license": "LGPL-3.0",
|
||||
"dependencies": {
|
||||
"@alfresco/adf-content-services": "9.1.0-16810702540",
|
||||
"@alfresco/adf-core": "9.1.0-16810702540",
|
||||
"@alfresco/adf-extensions": "9.1.0-16810702540",
|
||||
"@alfresco/eslint-plugin-eslint-angular": "9.1.0-16810702540",
|
||||
"@alfresco/js-api": "10.1.0-16810702540",
|
||||
"@alfresco/adf-content-services": "9.1.0-16939056653",
|
||||
"@alfresco/adf-core": "9.1.0-16939056653",
|
||||
"@alfresco/adf-extensions": "9.1.0-16939056653",
|
||||
"@alfresco/eslint-plugin-eslint-angular": "9.1.0-16939056653",
|
||||
"@alfresco/js-api": "10.1.0-16939056653",
|
||||
"@angular/animations": "19.2.6",
|
||||
"@angular/cdk": "19.2.9",
|
||||
"@angular/common": "19.2.6",
|
||||
@@ -46,7 +46,7 @@
|
||||
"zone.js": "0.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alfresco/adf-cli": "9.1.0-16810702540",
|
||||
"@alfresco/adf-cli": "9.1.0-16939056653",
|
||||
"@angular-devkit/build-angular": "19.2.15",
|
||||
"@angular-devkit/core": "19.2.7",
|
||||
"@angular-devkit/schematics": "19.2.7",
|
||||
@@ -113,13 +113,13 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@alfresco/adf-cli": {
|
||||
"version": "9.1.0-16810702540",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-9.1.0-16810702540.tgz",
|
||||
"integrity": "sha512-6C6qp+qmTZb+S4PfyAhzci8uoZE64NMM5YMoALDZ4eeMYlVAFnRscviHfUnmHLaZzKgC/H+fZ+L+FOLVUL8Viw==",
|
||||
"version": "9.1.0-16939056653",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-cli/-/adf-cli-9.1.0-16939056653.tgz",
|
||||
"integrity": "sha512-dAXkh2qC/Crm+ATRIYXmxfLdevIRZ2m9DNRDgQcgdKuGK/fHZ0PRn4VNmrhhI7UfRwYHm0NVdMarodL66l33CQ==",
|
||||
"dev": true,
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@alfresco/js-api": ">=10.1.0-16810702540",
|
||||
"@alfresco/js-api": ">=10.1.0-16939056653",
|
||||
"commander": "^6.2.1",
|
||||
"ejs": "^3.1.9",
|
||||
"license-checker": "^25.0.1",
|
||||
@@ -134,16 +134,16 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@alfresco/adf-content-services": {
|
||||
"version": "9.1.0-16810702540",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-9.1.0-16810702540.tgz",
|
||||
"integrity": "sha512-d8ecr/vXZ0BxxXpSYzJG7BkD3CkwOpEJDa1RZ+jQWXHhZiCeec97D4hYCgH13E/mSyu4GetJy7v3iNAJk2WiXg==",
|
||||
"version": "9.1.0-16939056653",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-content-services/-/adf-content-services-9.1.0-16939056653.tgz",
|
||||
"integrity": "sha512-r9kb7GT4/aoqR+RqIJCBoSGOOZ/VHZiznqaBQgEBQ+aswE9nDODMcyYve4F2ZF1pAIyQhnaiV5KigEFtiM9Pfw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@alfresco/adf-core": ">=9.1.0-16810702540",
|
||||
"@alfresco/js-api": ">=10.1.0-16810702540",
|
||||
"@alfresco/adf-core": ">=9.1.0-16939056653",
|
||||
"@alfresco/js-api": ">=10.1.0-16939056653",
|
||||
"@angular/animations": ">=14.1.3",
|
||||
"@angular/cdk": ">=14.1.2",
|
||||
"@angular/common": ">=14.1.3",
|
||||
@@ -158,9 +158,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@alfresco/adf-core": {
|
||||
"version": "9.1.0-16810702540",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-9.1.0-16810702540.tgz",
|
||||
"integrity": "sha512-4HzJ33FM6Fg7CDwAq0lEjuGtFCU7xPBMquZ9L5s0orD3Vt0RAhbeZJgA+W6DnZiAwqpTa9IEF90/+bDvqrEnDg==",
|
||||
"version": "9.1.0-16939056653",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-core/-/adf-core-9.1.0-16939056653.tgz",
|
||||
"integrity": "sha512-PxrrVIJNR5Wj4U7tVEQCz5XpfdZuGsnDYwW2qlvhy87/70zbXMuREy2es5fnG/ZKWhWVGpe4DmsI3IWapoY7Pw==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"angular-oauth2-oidc": "17.0.2",
|
||||
@@ -171,8 +171,8 @@
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@alfresco/adf-extensions": ">=9.1.0-16810702540",
|
||||
"@alfresco/js-api": ">=10.1.0-16810702540",
|
||||
"@alfresco/adf-extensions": ">=9.1.0-16939056653",
|
||||
"@alfresco/js-api": ">=10.1.0-16939056653",
|
||||
"@angular/animations": ">=16.0.0",
|
||||
"@angular/cdk": ">=16.0.0",
|
||||
"@angular/common": ">=16.0.0",
|
||||
@@ -206,29 +206,29 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@alfresco/adf-extensions": {
|
||||
"version": "9.1.0-16810702540",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-9.1.0-16810702540.tgz",
|
||||
"integrity": "sha512-GwVxtc66lmAcyzc0eJK2yBJC/k93FwyuQh07h79gfsIVBDJHcug7dVOAmc5uNs5LybtG/qLnZHf/erkicgz4yQ==",
|
||||
"version": "9.1.0-16939056653",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/adf-extensions/-/adf-extensions-9.1.0-16939056653.tgz",
|
||||
"integrity": "sha512-sbWnss0YXi92bDnoLFyANEK1FMb1Da/xaOynYdHBKoEC6y9Vajir/yAtJnURt+dvVWADCs89YIfajA6dtjD0HQ==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"tslib": "^2.3.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@alfresco/js-api": ">=10.1.0-16810702540",
|
||||
"@alfresco/js-api": ">=10.1.0-16939056653",
|
||||
"@angular/common": ">=14.1.3",
|
||||
"@angular/core": ">=14.1.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@alfresco/eslint-plugin-eslint-angular": {
|
||||
"version": "9.1.0-16810702540",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-9.1.0-16810702540.tgz",
|
||||
"integrity": "sha512-sxx1zgb5DwDabbbABWuiEZ4dBjpsVsD8XDY7N1qiJVavIQL7T+1B7nGWecbDvA7iezEWrkhYE/Aqg2JnLBCrvw==",
|
||||
"version": "9.1.0-16939056653",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/eslint-plugin-eslint-angular/-/eslint-plugin-eslint-angular-9.1.0-16939056653.tgz",
|
||||
"integrity": "sha512-oyuB5w60hUz+Abe9dXFCOH5piWOISBKm66HJWFqkEFNwKzzTbnXTnbhwhGT+izfi2jRskclRht9JnJub7j0jQw==",
|
||||
"license": "Apache-2.0"
|
||||
},
|
||||
"node_modules/@alfresco/js-api": {
|
||||
"version": "10.1.0-16810702540",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-10.1.0-16810702540.tgz",
|
||||
"integrity": "sha512-hDBMUGUPIF5K7Qacgmpk6be0d56botRmclGkq6mtArx4IXgMCPW7XBWBRbrtpNG1mQ1Nn5wnUWXxQBgCc88hNA==",
|
||||
"version": "10.1.0-16939056653",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-10.1.0-16939056653.tgz",
|
||||
"integrity": "sha512-YQN7CbqV5eukZKKTTFa/hNl23CnFfgV5+w1O/kNDru8uiCglD9Ikgz7Kxgyx1VyQ584xoSRnJ/oUMtsNU7cgoA==",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"event-emitter": "^0.3.5",
|
||||
|
12
package.json
12
package.json
@@ -30,11 +30,11 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@alfresco/adf-content-services": "9.1.0-16810702540",
|
||||
"@alfresco/adf-core": "9.1.0-16810702540",
|
||||
"@alfresco/adf-extensions": "9.1.0-16810702540",
|
||||
"@alfresco/eslint-plugin-eslint-angular": "9.1.0-16810702540",
|
||||
"@alfresco/js-api": "10.1.0-16810702540",
|
||||
"@alfresco/adf-content-services": "9.1.0-16939056653",
|
||||
"@alfresco/adf-core": "9.1.0-16939056653",
|
||||
"@alfresco/adf-extensions": "9.1.0-16939056653",
|
||||
"@alfresco/eslint-plugin-eslint-angular": "9.1.0-16939056653",
|
||||
"@alfresco/js-api": "10.1.0-16939056653",
|
||||
"@angular/animations": "19.2.6",
|
||||
"@angular/cdk": "19.2.9",
|
||||
"@angular/common": "19.2.6",
|
||||
@@ -67,7 +67,7 @@
|
||||
"zone.js": "0.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alfresco/adf-cli": "9.1.0-16810702540",
|
||||
"@alfresco/adf-cli": "9.1.0-16939056653",
|
||||
"@angular-devkit/build-angular": "19.2.15",
|
||||
"@angular-devkit/core": "19.2.7",
|
||||
"@angular-devkit/schematics": "19.2.7",
|
||||
|
@@ -26,7 +26,6 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { NoopTranslateModule, UnitTestingUtils } from '@alfresco/adf-core';
|
||||
import { RuleActionListUiComponent } from './rule-action-list.ui-component';
|
||||
import { DebugElement } from '@angular/core';
|
||||
import { RuleActionUiComponent } from './rule-action.ui-component';
|
||||
import { AlfrescoApiService, AlfrescoApiServiceMock } from '@alfresco/adf-content-services';
|
||||
|
||||
describe('RuleActionListUiComponent', () => {
|
||||
@@ -51,56 +50,49 @@ describe('RuleActionListUiComponent', () => {
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
function countRuleActions(): number {
|
||||
const acaRuleActions = fixture.nativeElement.querySelectorAll('aca-rule-action');
|
||||
return acaRuleActions.length;
|
||||
}
|
||||
|
||||
function clickButton(selector: string) {
|
||||
const button = getByDataAutomationId(selector).nativeElement as HTMLButtonElement;
|
||||
button.click();
|
||||
fixture.detectChanges();
|
||||
}
|
||||
|
||||
it('should default to 1 empty action when an empty array of actions is written', () => {
|
||||
const acaRuleActions = unitTestingUtils.getAllByDirective(RuleActionUiComponent);
|
||||
expect(acaRuleActions.length).toBe(1);
|
||||
expect(countRuleActions()).toBe(1);
|
||||
});
|
||||
|
||||
it('should add a new action when the "add action" button is clicked', () => {
|
||||
const addActionButton = getByDataAutomationId('rule-action-list-add-action-button').nativeElement as HTMLButtonElement;
|
||||
addActionButton.click();
|
||||
fixture.detectChanges();
|
||||
|
||||
const acaRuleActions = unitTestingUtils.getAllByDirective(RuleActionUiComponent);
|
||||
expect(acaRuleActions.length).toBe(2);
|
||||
clickButton('rule-action-list-add-action-button');
|
||||
expect(countRuleActions()).toBe(2);
|
||||
});
|
||||
|
||||
it('should disable the remove button if there is only one action', () => {
|
||||
const menuButton = getByDataAutomationId('rule-action-list-action-menu', 0).nativeElement as HTMLButtonElement;
|
||||
menuButton.click();
|
||||
fixture.detectChanges();
|
||||
clickButton('rule-action-list-action-menu');
|
||||
|
||||
const removeActionButton = getByDataAutomationId('rule-action-list-remove-action-button').nativeElement as HTMLButtonElement;
|
||||
expect(removeActionButton.disabled).toBeTrue();
|
||||
});
|
||||
|
||||
it('should enable the remove button if there is more than one action', () => {
|
||||
const addActionButton = getByDataAutomationId('rule-action-list-add-action-button').nativeElement as HTMLButtonElement;
|
||||
addActionButton.click();
|
||||
fixture.detectChanges();
|
||||
|
||||
const menuButton = getByDataAutomationId('rule-action-list-action-menu', 0).nativeElement as HTMLButtonElement;
|
||||
menuButton.click();
|
||||
fixture.detectChanges();
|
||||
clickButton('rule-action-list-add-action-button');
|
||||
clickButton('rule-action-list-action-menu');
|
||||
|
||||
const removeActionButton = getByDataAutomationId('rule-action-list-remove-action-button').nativeElement as HTMLButtonElement;
|
||||
expect(removeActionButton.disabled).toBeFalse();
|
||||
});
|
||||
|
||||
it('should remove an action when the remove action button is clicked', () => {
|
||||
const addActionButton = getByDataAutomationId('rule-action-list-add-action-button').nativeElement as HTMLButtonElement;
|
||||
addActionButton.click();
|
||||
fixture.detectChanges();
|
||||
|
||||
const menuButton = getByDataAutomationId('rule-action-list-action-menu', 0).nativeElement as HTMLButtonElement;
|
||||
menuButton.click();
|
||||
fixture.detectChanges();
|
||||
clickButton('rule-action-list-add-action-button');
|
||||
clickButton('rule-action-list-action-menu');
|
||||
|
||||
const removeActionButton = getByDataAutomationId('rule-action-list-remove-action-button').nativeElement as HTMLButtonElement;
|
||||
removeActionButton.click();
|
||||
fixture.detectChanges();
|
||||
|
||||
const acaRuleActions = unitTestingUtils.getAllByDirective(RuleActionUiComponent);
|
||||
expect(acaRuleActions.length).toBe(1);
|
||||
expect(countRuleActions()).toBe(1);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user