diff --git a/tests/NuGetGallery.WebUITests.P0/BasicPages/NetFoundationBrandingValidationTest.cs b/tests/NuGetGallery.WebUITests.P0/BasicPages/NetFoundationBrandingValidationTest.cs index 80948972b2..ded41dc409 100644 --- a/tests/NuGetGallery.WebUITests.P0/BasicPages/NetFoundationBrandingValidationTest.cs +++ b/tests/NuGetGallery.WebUITests.P0/BasicPages/NetFoundationBrandingValidationTest.cs @@ -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; @@ -23,7 +24,7 @@ public override IEnumerator GetRequestEnumerator() //send a request to home page and check for default home page text. var pageRequest = new WebTestRequest(UrlHelper.BaseUrl); var homePageTextValidationRuleLogo = AssertAndValidationHelper.GetValidationRuleForFindText(@""); - var homePageTextValidationRuleCopyright = AssertAndValidationHelper.GetValidationRuleForFindText(@"© 2015 .NET Foundation"); + var homePageTextValidationRuleCopyright = AssertAndValidationHelper.GetValidationRuleForFindText(@"© " + DateTime.UtcNow.Year + " .NET Foundation"); var homePageTextValidationRuleTOU = AssertAndValidationHelper.GetValidationRuleForFindText(@"Terms of Use"); var homePageTextValidationRulePrivacy = AssertAndValidationHelper.GetValidationRuleForFindText(@"Privacy Policy");