Skip to content

Commit

Permalink
Merge pull request #2208 from NuGet/danliu/tests
Browse files Browse the repository at this point in the history
Fix functional test issues
  • Loading branch information
danliu committed Jun 10, 2014
2 parents 336d471 + 2f487dc commit e50dce0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void ResendConfirmation()
// Go to account confirmation page
I.Open(UrlHelper.BaseUrl + "account/confirmationrequired");
// Click the (change) link
I.Open(UrlHelper.BaseUrl + "account/edit");
I.Open(UrlHelper.BaseUrl + "account");
I.Expect.Count(0).Of("h1:contains('404')");

// Go back to account confirmation page and click the Send Confirmation Email link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public override IEnumerator<WebTestRequest> GetRequestEnumerator()
{
//send a request to home page and check for default home page text.
WebTestRequest pageRequest = new WebTestRequest(UrlHelper.BaseUrl);
ValidationRuleFindText homePageTextValidationRuleLogo = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a href=""http://outercurve.org""><img src=""/Content/Logos/outercurve.png"" alt=""Outercurve Foundation"" /></a>");
ValidationRuleFindText homePageTextValidationRuleLogo = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a title=""Outercurve Foundation"" href=""http://outercurve.org""><img src=""/Content/Logos/outercurve.png"" alt=""Outercurve Foundation"" /></a>");
ValidationRuleFindText homePageTextValidationRuleCopyright = AssertAndValidationHelper.GetValidationRuleForFindText(@"&copy; 2014 Outercurve Foundation");
ValidationRuleFindText homePageTextValidationRuleTOU = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a href=""/policies/Terms"">Terms of Use</a>");
ValidationRuleFindText homePageTextValidationRulePrivacy = AssertAndValidationHelper.GetValidationRuleForFindText(@"<a href=""/policies/Privacy"">Privacy Policy</a>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public override IEnumerator<WebTestRequest> GetRequestEnumerator()

//Checks for the prescene of a link to jqeury package. It is harded to Jquery for now as there is no API exposed for stats
//and also Jquery is going to be one of the top 10 for now.
ValidateHtmlTagInnerText jQueryPackageValidationRule = AssertAndValidationHelper.GetValidationRuleForHtmlTagInnerText(HtmlTextWriterTag.A.ToString(), HtmlTextWriterAttribute.Href.ToString(), "/packages/jQuery/", "jQuery");
ValidateHtmlTagInnerText jQueryPackageValidationRule = AssertAndValidationHelper.GetValidationRuleForHtmlTagInnerText(HtmlTextWriterTag.A.ToString(), HtmlTextWriterAttribute.Href.ToString(), "/packages/EntityFramework/", "EntityFramework");
statsPageRequest.ValidateResponse += new EventHandler<ValidationEventArgs>(jQueryPackageValidationRule.Validate);
//validation rule to check for the default text in stats page.
ValidationRuleFindText StatsPageDefaultTextValidationRule = AssertAndValidationHelper.GetValidationRuleForFindText(Constants.StatsPageDefaultText);
Expand Down

0 comments on commit e50dce0

Please sign in to comment.