diff --git a/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts b/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts index ddc7d7ac22..4b9e4513ec 100644 --- a/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts +++ b/lib/content-services/src/lib/content-node-selector/content-node-selector.component.spec.ts @@ -122,6 +122,8 @@ describe('ContentNodeSelectorComponent', () => { fixture.destroy(); }); + const getTabInfoButton = () => fixture.debugElement.query(By.css('[data-automation-id="adf-content-node-selector-disabled-tab-info-icon"]')); + const enableLocalUpload = () => { component.data.showLocalUploadButton = true; component.hasAllowableOperations = true; diff --git a/lib/content-services/src/lib/content-type/content-type-dialog.component.spec.ts b/lib/content-services/src/lib/content-type/content-type-dialog.component.spec.ts index 32b88f7bf7..1c9205bb99 100644 --- a/lib/content-services/src/lib/content-type/content-type-dialog.component.spec.ts +++ b/lib/content-services/src/lib/content-type/content-type-dialog.component.spec.ts @@ -21,11 +21,11 @@ import { of, Subject } from 'rxjs'; import { ContentTestingModule } from '../testing/content.testing.module'; import { ContentTypeDialogComponent } from './content-type-dialog.component'; import { ContentTypeDialogComponentData } from './content-type-metadata.interface'; -import { TypeEntry } from '@alfresco/js-api'; import { HarnessLoader } from '@angular/cdk/testing'; import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; import { MatExpansionPanelHarness } from '@angular/material/expansion/testing'; import { MatTableHarness } from '@angular/material/table/testing'; +import { ContentTypeService } from './content-type.service'; const elementCustom: TypeEntry = { entry: { diff --git a/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.spec.ts b/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.spec.ts index c66830ce25..8ed9739f28 100644 --- a/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.spec.ts +++ b/lib/content-services/src/lib/search/components/search-chip-autocomplete-input/search-chip-autocomplete-input.component.spec.ts @@ -24,7 +24,7 @@ import { SearchChipAutocompleteInputComponent } from './search-chip-autocomplete import { DebugElement } from '@angular/core'; import { HarnessLoader } from '@angular/cdk/testing'; import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed'; -import { MatChipHarness, MatChipListHarness } from '@angular/material/chips/testing'; +import { MatChipHarness, MatChipGridHarness } from '@angular/material/chips/testing'; import { MatAutocompleteHarness } from '@angular/material/autocomplete/testing'; import { MatOptionHarness } from '@angular/material/core/testing'; @@ -89,8 +89,8 @@ describe('SearchChipAutocompleteInputComponent', () => { * @returns list of chips */ async function getChipList(): Promise { - const harness = await loader.getHarness(MatChipListHarness); - return harness.getChips(); + const harness = await loader.getHarness(MatChipGridHarness); + return harness.getRows(); } /** diff --git a/lib/content-services/src/lib/tree/components/tree.component.spec.ts b/lib/content-services/src/lib/tree/components/tree.component.spec.ts index 3c63213f7e..6635baf650 100644 --- a/lib/content-services/src/lib/tree/components/tree.component.spec.ts +++ b/lib/content-services/src/lib/tree/components/tree.component.spec.ts @@ -17,7 +17,7 @@ import { TreeComponent } from './tree.component'; import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { AlfrescoApiService, AlfrescoApiServiceMock, ContextMenuDirective, ContextMenuModule, IconModule, TranslationMock, TranslationService, UserPreferencesService } from '@alfresco/adf-core'; +import { ContextMenuDirective, CoreTestingModule, UserPreferencesService } from '@alfresco/adf-core'; import { MatTreeModule } from '@angular/material/tree'; import { TreeNode, TreeNodeType } from '../models/tree-node.interface'; import { @@ -67,24 +67,14 @@ describe('TreeComponent', () => { beforeEach(() => { TestBed.configureTestingModule({ imports: [ - TranslateModule.forRoot(), - HttpClientModule, - NoopAnimationsModule, - MatTreeModule, - MatIconModule, - MatMenuModule, - MatProgressSpinnerModule, - MatCheckboxModule, - IconModule, - ContextMenuModule + CoreTestingModule, + MatTreeModule ], declarations: [ TreeComponent ], providers: [ - { provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }, - { provide: TreeService, useClass: TreeServiceMock }, - { provide: TranslationService, useClass: TranslationMock } + { provide: TreeService, useClass: TreeServiceMock } ] }); diff --git a/lib/core/src/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.html b/lib/core/src/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.html index 8e4d56cb66..980b39d854 100644 --- a/lib/core/src/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.html +++ b/lib/core/src/lib/card-view/components/card-view-arrayitem/card-view-arrayitem.component.html @@ -2,19 +2,19 @@
- + {{item.icon}} {{item?.value}} - {{items.length - displayCount()}} {{'CORE.CARDVIEW.MORE' | translate}} + {{items.length - displayCount}} {{'CORE.CARDVIEW.MORE' | translate}} @@ -32,7 +32,7 @@ {{item.icon}} {{item?.value}} diff --git a/lib/core/src/lib/dynamic-chip-list/dynamic-chip-list.component.html b/lib/core/src/lib/dynamic-chip-list/dynamic-chip-list.component.html index cb8dfc4a67..ca411b69b4 100644 --- a/lib/core/src/lib/dynamic-chip-list/dynamic-chip-list.component.html +++ b/lib/core/src/lib/dynamic-chip-list/dynamic-chip-list.component.html @@ -1,16 +1,19 @@ -
- - +
+ + {{ chip.name }} - -