diff --git a/lib/content-services/src/lib/content-node-selector/site-dropdown/sites-dropdown.component.html b/lib/content-services/src/lib/content-node-selector/site-dropdown/sites-dropdown.component.html
index 61c2386113..af05121245 100644
--- a/lib/content-services/src/lib/content-node-selector/site-dropdown/sites-dropdown.component.html
+++ b/lib/content-services/src/lib/content-node-selector/site-dropdown/sites-dropdown.component.html
@@ -1,8 +1,10 @@
+ {{placeholder | translate}}
{
});
});
+ afterEach(() => {
+ fixture.destroy();
+ });
+
describe('Rendering tests', () => {
describe('Infinite Loading', () => {
beforeEach(() => {
@@ -144,10 +149,10 @@ describe('DropdownSitesComponent', () => {
fixture.detectChanges();
await fixture.whenStable();
- const select = await loader.getHarness(MatSelectHarness);
- await select.open();
+ const selectFormField = await loader.getHarness(MatFormFieldHarness);
+ const label = await selectFormField.getLabel();
- expect(fixture.nativeElement.innerText.trim()).toContain('NODE_SELECTOR.LOCATION');
+ expect(label).toContain('DROPDOWN.PLACEHOLDER_LABEL');
});
it('should show custom placeholder label when the "placeholder" input property is given a value', async () => {
@@ -156,10 +161,10 @@ describe('DropdownSitesComponent', () => {
fixture.detectChanges();
await fixture.whenStable();
- const select = await loader.getHarness(MatSelectHarness);
- await select.open();
+ const selectFormField = await loader.getHarness(MatFormFieldHarness);
+ const label = await selectFormField.getLabel();
- expect(fixture.nativeElement.innerText.trim()).toContain('NODE_SELECTOR.LOCATION');
+ expect(label).toContain('NODE_SELECTOR.SELECT_LIBRARY');
});
it('should load custom sites when the "siteList" input property is given a value', async () => {
diff --git a/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts b/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts
index 81638f35b8..2e7b5fb918 100644
--- a/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts
+++ b/lib/content-services/src/lib/document-list/components/document-list.component.spec.ts
@@ -1431,7 +1431,7 @@ describe('DocumentList', () => {
expect(documentList.reload).toHaveBeenCalled();
});
- it('should not show loading state if pagination is updated with merge setting as true', fakeAsync(() => {
+ it('should not show loading state if pagination is updated with merge setting as true', () => {
spyFolderNode = spyOn(documentListService, 'loadFolderByNodeId').and.callFake(() =>
of(
new DocumentLoaderNode(null, {
@@ -1456,7 +1456,7 @@ describe('DocumentList', () => {
fixture.detectChanges();
expect(element.querySelector('#adf-document-list-loading')).toBe(null);
- }));
+ });
it('should NOT reload data on first call of ngOnChanges', () => {
spyOn(documentList, 'reload').and.stub();
diff --git a/lib/core/src/lib/context-menu/context-menu-list.component.ts b/lib/core/src/lib/context-menu/context-menu-list.component.ts
index 6c922a88b6..3bf141e60a 100644
--- a/lib/core/src/lib/context-menu/context-menu-list.component.ts
+++ b/lib/core/src/lib/context-menu/context-menu-list.component.ts
@@ -26,6 +26,7 @@ import { MatIconModule } from '@angular/material/icon';
import { NgForOf, NgIf } from '@angular/common';
import { TranslateModule } from '@ngx-translate/core';
import { DOWN_ARROW, UP_ARROW } from '@angular/cdk/keycodes';
+import { MatTooltipModule } from '@angular/material/tooltip';
@Component({
selector: 'adf-context-menu',