diff --git a/demo-shell/src/app/components/notifications/notifications.component.ts b/demo-shell/src/app/components/notifications/notifications.component.ts index bc597dc307..285491408f 100644 --- a/demo-shell/src/app/components/notifications/notifications.component.ts +++ b/demo-shell/src/app/components/notifications/notifications.component.ts @@ -29,7 +29,7 @@ import { takeUntil } from 'rxjs/operators'; export class NotificationsComponent implements OnInit, OnDestroy { message = 'I ♥️ ADF'; - decorativeIcon = 'folder'; + decorativeIcon = ''; withAction = false; actionOutput = ''; snackBarConfigObject = ''; diff --git a/e2e/core/notifications-component.e2e.ts b/e2e/core/notifications-component.e2e.ts index 871d3f7244..2f8a4a6378 100644 --- a/e2e/core/notifications-component.e2e.ts +++ b/e2e/core/notifications-component.e2e.ts @@ -67,13 +67,6 @@ describe('Notifications Component', () => { await expect(await notificationPage.snackbarPage.getSnackBarMessage()).toEqual('test'); }); - it('[C694098] Should show a decorative icon when the message and the icon fields are not empty and button is clicked', async () => { - await notificationPage.enterMessageField('test'); - await notificationPage.enterDecorativeIconField('folder'); - await notificationPage.clickNotificationButton(); - await expect(await notificationPage.snackbarPage.getSnackBarDecorativeIcon()).toEqual('folder'); - }); - it('[C279978] Should show notification with action when the message is not empty and button is clicked', async () => { await notificationPage.enterMessageField('test'); await notificationPage.clickActionToggle(); @@ -103,6 +96,13 @@ describe('Notifications Component', () => { await notificationPage.clickActionToggle(); }); + it('[C694098] Should show a decorative icon when the message and the icon fields are not empty and button is clicked', async () => { + await notificationPage.enterMessageField('test'); + await notificationPage.enterDecorativeIconField('folder'); + await notificationPage.clickNotificationButton(); + await expect(await notificationPage.snackbarPage.getSnackBarDecorativeIcon()).toEqual('folder'); + }); + it('[C279987] Should show custom notification during a limited time when a duration is added', async () => { await notificationPage.enterMessageField('test'); await notificationPage.enterDurationField(1000); diff --git a/lib/core/src/lib/snackbar-content/snackbar-content.component.html b/lib/core/src/lib/snackbar-content/snackbar-content.component.html index dc917f0b58..5cbdbc344d 100644 --- a/lib/core/src/lib/snackbar-content/snackbar-content.component.html +++ b/lib/core/src/lib/snackbar-content/snackbar-content.component.html @@ -1,6 +1,4 @@ -
+