[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:
parent
83bf684d88
commit
7401e0be8d
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue