Skip to content

Commit

Permalink
Update check in V2 Search() functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenba committed Jul 27, 2016
1 parent 0589f06 commit 54e9904
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/NuGetGallery.FunctionalTests/ODataFeeds/SearchTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ private async Task SearchFeedAsync(string feedRootUrl, string title)

var expectedUrl = feedRootUrl + "package/Microsoft.AspNet.WebHelpers/";

Assert.True(responseText.Contains(@"<title type=""text"">" + title + @"</title>"), "The expected package title '" + title + "' wasn't found in the feed. Feed contents: " + responseText);
Assert.True(responseText.Contains(@"<title type=""text"">" + title + @"</title>")
|| responseText.Contains(@"<d:Title > " + title + @"</d:Title>"), "The expected package title '" + title + "' wasn't found in the feed. Feed contents: " + responseText);
Assert.True(responseText.Contains(@"<content type=""application/zip"" src=""" + expectedUrl), "The expected package URL '" + expectedUrl + "' wasn't found in the feed. Feed contents: " + responseText);
Assert.False(responseText.Contains(@"jquery"), "The feed contains non-matching package names. Feed contents: " + responseText);
}
Expand Down

0 comments on commit 54e9904

Please sign in to comment.