TSK-1187 removed unnecessary change from automatic refactor

This commit is contained in:
Chi Nguyen 2020-04-14 13:27:56 +02:00 committed by Mustapha Zorgati
parent 2ce65c502c
commit 13c829cb19
4 changed files with 23 additions and 23 deletions

View File

@ -80,7 +80,7 @@ describe('DistributionTargetsComponent', () => {
expect(component.distributionTargetsRight).toBeDefined();
});
it('should have two classification-list with differents elements onInit', () => {
it('should have two list with differents elements onInit', () => {
let repeteadElemens = false;
expect(component.distributionTargetsLeft.length).toBe(2);
expect(component.distributionTargetsRight.length).toBe(1);
@ -92,7 +92,7 @@ describe('DistributionTargetsComponent', () => {
expect(repeteadElemens).toBeFalsy();
});
it('should filter left classification-list and keep selected elements as selected', () => {
it('should filter left list and keep selected elements as selected', () => {
component.performFilter({
filterBy: new FilterModel({
name: 'someName', owner: 'someOwner', description: 'someDescription', key: 'someKey'

View File

@ -122,34 +122,34 @@ describe('WorkbasketListComponent', () => {
});
});
it('should have wb-action-toolbar, wb-search-bar, wb-classification-list-container, wb-pagination,'
it('should have wb-action-toolbar, wb-search-bar, wb-list-container, wb-pagination,'
+ ' collapsedMenufilterWb and taskana-filter created in the html', () => {
expect(debugElement.querySelector('#wb-action-toolbar')).toBeDefined();
expect(debugElement.querySelector('#wb-search-bar')).toBeDefined();
expect(debugElement.querySelector('#wb-pagination')).toBeDefined();
expect(debugElement.querySelector('#wb-classification-list-container')).toBeDefined();
expect(debugElement.querySelector('#wb-list-container')).toBeDefined();
expect(debugElement.querySelector('#collapsedMenufilterWb')).toBeDefined();
expect(debugElement.querySelector('taskana-filter')).toBeDefined();
expect(debugElement.querySelectorAll('#wb-classification-list-container > li').length).toBe(3);
expect(debugElement.querySelectorAll('#wb-list-container > li').length).toBe(3);
});
// it('should have two workbasketsummary rows created with the second one selected.', fakeAsync(() => {
// tick(0);
// fixture.detectChanges();
// fixture.whenStable().then(() => {
// expect(debugElement.querySelectorAll('#wb-classification-list-container > li').length).toBe(3);
// expect(debugElement.querySelectorAll('#wb-classification-list-container > li')[1].getAttribute('class'))
// .toBe('classification-list-group-item ng-star-inserted');
// expect(debugElement.querySelectorAll('#wb-classification-list-container > li')[2].getAttribute('class'))
// .toBe('classification-list-group-item ng-star-inserted active');
// expect(debugElement.querySelectorAll('#wb-list-container > li').length).toBe(3);
// expect(debugElement.querySelectorAll('#wb-list-container > li')[1].getAttribute('class'))
// .toBe('list-group-item ng-star-inserted');
// expect(debugElement.querySelectorAll('#wb-list-container > li')[2].getAttribute('class'))
// .toBe('list-group-item ng-star-inserted active');
// })
//
// }));
it('should have two workbasketsummary rows created with two different icons: user and users', () => {
expect(debugElement.querySelectorAll('#wb-classification-list-container > li')[1]
expect(debugElement.querySelectorAll('#wb-list-container > li')[1]
.querySelector('svg-icon').getAttribute('ng-reflect-src')).toBe('./assets/icons/user.svg');
expect(debugElement.querySelectorAll('#wb-classification-list-container > li')[2]
expect(debugElement.querySelectorAll('#wb-list-container > li')[2]
.querySelector('svg-icon').getAttribute('ng-reflect-src')).toBe('./assets/icons/users.svg');
});

View File

@ -72,22 +72,22 @@ export const errors = new Map<ERROR_TYPES, Pair>([
'You can\'t delete a group',
'',
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.CREATE_ERR, new Pair(
'There was an error creating a classification',
'',
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.REMOVE_ERR, new Pair(
'There was error while removing your classification',
''
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.SAVE_ERR, new Pair(
'There was error while saving your classification',
''
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.SELECT_ERR, new Pair(
'There is no classification selected',
'Please check if you are creating a classification'
@ -128,7 +128,7 @@ export const errors = new Map<ERROR_TYPES, Pair>([
'',
'An error occurred while fetching the task'
)],
// workbasket-classification-details.component
// workbasket-details.component
[ERROR_TYPES.FETCH_ERR_4, new Pair(
'An error occurred while fetching the workbasket',
''
@ -208,17 +208,17 @@ export const errors = new Map<ERROR_TYPES, Pair>([
'',
'{this.accessIdSelected} was removed successfully'
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.SUCCESS_ALERT_2, new Pair(
'',
'Classification {classification.key} was saved successfully'
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.SUCCESS_ALERT_3, new Pair(
'Classification {this.classification.key} was saved successfully',
''
)],
// classification-classification-details.component
// classification-details.component
// access-items.component
// workbasket.distribution-targets.component
// workbasket-information.component
@ -226,12 +226,12 @@ export const errors = new Map<ERROR_TYPES, Pair>([
'Reset edited fields',
''
)],
// classification-classification-details.component
// classification-details.component
[ERROR_TYPES.SUCCESS_ALERT_4, new Pair(
'Classification {key} was removed successfully',
''
)],
// classification-classification-list.component
// classification-list.component
[ERROR_TYPES.SUCCESS_ALERT_5, new Pair(
'Classification {key} was saved successfully',
''

View File

@ -1,7 +1,7 @@
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --configuration=production` then `environment.prod.ts` will be used instead.
// The classification-list of which env maps to which file can be found in `.angular-cli.json`.
// The list of which env maps to which file can be found in `.angular-cli.json`.
export const environment = {
production: false,