diff --git a/e2e/user.e2e-spec.ts b/e2e/user.e2e-spec.ts index 88c9398f74..309d28ed59 100644 --- a/e2e/user.e2e-spec.ts +++ b/e2e/user.e2e-spec.ts @@ -4,7 +4,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. */ -import { browser } from 'protractor'; +import { browser, element, by } from 'protractor'; import { NbBadgeComponent } from '../src/framework/theme/components/badge/badge.component'; import badgeTests from './badge.e2e-spec'; @@ -36,4 +36,10 @@ describe('nb-user', () => { badgeTests(badgesConf); }); + it('background image should have base64 image', () => { + element(by.css('#base64-image .user-picture.image')).getCssValue('background-image').then(value => { + expect(value).toEqual('url("data:image/png;base64,aaa")'); + }); + }); + }); diff --git a/src/app/user-test/user-test.component.ts b/src/app/user-test/user-test.component.ts index 12abb245b9..4a78a9916c 100644 --- a/src/app/user-test/user-test.component.ts +++ b/src/app/user-test/user-test.component.ts @@ -108,6 +108,10 @@ import { NbBadgeComponent } from 'framework/theme/components/badge/badge.compone [badgePosition]="badge.TOP_LEFT"> +