[Templates] Several fixes

* Make the tests use HTTP/2 again.
* Increase logging of the launched projects to Debug.
* Make the test use the default CI timeout for assertions instead of a custom one.
This commit is contained in:
Javier Calvarro Nelson 2019-09-18 20:33:25 +02:00 committed by GitHub
parent 83bf684d88
commit 7401e0be8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -204,7 +204,10 @@ namespace Templates.Test.Helpers
{
["ASPNETCORE_URLS"] = _urls,
["ASPNETCORE_ENVIRONMENT"] = "Development",
["ASPNETCORE_Kestrel__EndpointDefaults__Protocols"] = "Http1"
["ASPNETCORE_Logging__Console__LogLevel__Default"] = "Debug",
["ASPNETCORE_Logging__Console__LogLevel__System"] = "Debug",
["ASPNETCORE_Logging__Console__LogLevel__Microsoft"] = "Debug",
["ASPNETCORE_Logging__Console__IncludeScopes"] = "true",
};
var projectDll = Path.Combine(TemplateBuildDir, $"{ProjectName}.dll");
@ -216,7 +219,10 @@ namespace Templates.Test.Helpers
var environment = new Dictionary<string, string>
{
["ASPNETCORE_URLS"] = _urls,
["ASPNETCORE_Kestrel__EndpointDefaults__Protocols"] = "Http1"
["ASPNETCORE_Logging__Console__LogLevel__Default"] = "Debug",
["ASPNETCORE_Logging__Console__LogLevel__System"] = "Debug",
["ASPNETCORE_Logging__Console__LogLevel__Microsoft"] = "Debug",
["ASPNETCORE_Logging__Console__IncludeScopes"] = "true",
};
var projectDll = $"{ProjectName}.dll";

View File

@ -297,7 +297,7 @@ namespace Templates.Test.SpaTemplateTest
browser.Equal("Weather forecast", () => browser.FindElement(By.TagName("h1")).Text);
// Asynchronously loads and displays the table of weather forecasts
browser.Exists(By.CssSelector("table>tbody>tr"), TimeSpan.FromSeconds(10));
browser.Exists(By.CssSelector("table>tbody>tr"));
browser.Equal(5, () => browser.FindElements(By.CssSelector("p+table>tbody>tr")).Count);
}