mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[HXCS-1322] fix e2e NotificaionComponent demo (#8413)
* [HXCS-1322] fix e2e NotificaionComponent demo * [HXCS-1173] revert to one line * [HXCS-1173] move new test after breaking tests --------- Co-authored-by: Adriano Costa <Adriano.Costa@hyland.comgit>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user