[ADF-2455] fix properly fall back datatable thumbnail

fix search node selector
drop down list style
This commit is contained in:
Eugenio Romano
2018-04-17 01:19:59 +01:00
parent c8cbc8d645
commit 0a8438954b
10 changed files with 41 additions and 20 deletions

View File

@@ -726,7 +726,7 @@ describe('DataTable', () => {
expect(event.target.src).toBe(dataTable.fallbackThumbnail);
});
it('should replace image source only when fallback available', () => {
it('should replace image source with miscellaneous icon when fallback is not available', () => {
const originalSrc = 'missing-image';
let event = <any> {
target: {
@@ -736,7 +736,7 @@ describe('DataTable', () => {
dataTable.fallbackThumbnail = null;
dataTable.onImageLoadingError(event);
expect(event.target.src).toBe(originalSrc);
expect(event.target.src).toBe('./assets/images/ft_ic_miscellaneous.svg' );
});
it('should replace image source with icon if fallback is not available and mimeType is provided', () => {