public async Task NotifiedPageHasReturnLinkToOverview() { // Arrange const int id = Utilities.NOTIFICATION_ID_WITH_MBOVIS_MILK_ENTITIES; var url = GetCurrentPathForId(id); // Act var document = await GetDocumentForUrlAsync(url); // Assert var overviewLink = RouteHelper.GetNotificationOverviewPathWithSectionAnchor(id, NotificationSubPath); Assert.NotNull(document.QuerySelector($"a[href='{overviewLink}']")); }
public async Task NotifiedPageHasReturnLinkToOverview() { // Arrange const int id = Utilities.NOTIFIED_ID; var notificationSubPath = NotificationSubPaths.EditSocialContextAddresses; var url = GetPathForId(notificationSubPath, id); // Act var document = await GetDocumentForUrlAsync(url); // Assert var overviewLink = RouteHelper.GetNotificationOverviewPathWithSectionAnchor(id, notificationSubPath); Assert.NotNull(document.QuerySelector($"a[href='{overviewLink}']")); }