Use proper notifications instead of event messages

This commit is contained in:
nikolajlauridsen
2021-10-08 11:24:10 +02:00
parent f0f8874727
commit 8e7fb897d1
3 changed files with 49 additions and 37 deletions

View File

@@ -441,6 +441,8 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Web.BackOffice.Controllers
string body = await response.Content.ReadAsStringAsync();
body = body.TrimStart(AngularJsonMediaTypeFormatter.XsrfPrefix);
ContentItemDisplay display = JsonConvert.DeserializeObject<ContentItemDisplay>(body);
Assert.IsNotNull(display);
Assert.AreEqual(1, display.Notifications.Count(x => x.NotificationType == NotificationStyle.Warning));
}
}
}