Skip to content

Commit

Permalink
Functional tests should check for current year in footer, not for har…
Browse files Browse the repository at this point in the history
…dcoded 2015
  • Loading branch information
maartenba committed Jan 5, 2016
1 parent 2e07ab6 commit 441b80d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.WebTesting;
using NuGetGallery.FunctionalTests.Helpers;
Expand All @@ -23,7 +24,7 @@ public override IEnumerator<WebTestRequest> GetRequestEnumerator()
//send a request to home page and check for default home page text.
var pageRequest = new WebTestRequest(UrlHelper.BaseUrl);
var homePageTextValidationRuleLogo = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a title="".NET Foundation"" href=""http://www.dotnetfoundation.org""><img src=""/Content/Logos/dnf.png"" alt="".NET Foundation"" /></a>");
var homePageTextValidationRuleCopyright = AssertAndValidationHelper.GetValidationRuleForFindText(@"&copy; 2015 .NET Foundation");
var homePageTextValidationRuleCopyright = AssertAndValidationHelper.GetValidationRuleForFindText(@"&copy; " + DateTime.UtcNow.Year + " .NET Foundation");
var homePageTextValidationRuleTOU = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a href=""/policies/Terms"">Terms of Use</a>");
var homePageTextValidationRulePrivacy = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a href=""/policies/Privacy"">Privacy Policy</a>");

Expand Down

0 comments on commit 441b80d

Please sign in to comment.