Merge pull request #83 from unoplatform/dev/jela/fix-net6-driver-download
fix(net6): automatic driver download
This commit is contained in:
Коммит
64c6caccd4
|
@ -138,6 +138,7 @@ jobs:
|
|||
testRunTitle: 'WebAssembly Test Run'
|
||||
testResultsFormat: 'NUnit'
|
||||
testResultsFiles: '$(build.sourcesdirectory)/build/TestResult.xml'
|
||||
failTaskOnFailedTests: true
|
||||
searchFolder: '$(System.DefaultWorkingDirectory)' # https://github.com/microsoft/azure-pipelines-tasks/issues/10072
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
|
|
|
@ -15,6 +15,11 @@ namespace Sample.UITests
|
|||
{
|
||||
TestBase.InitializeTestEnvrionment();
|
||||
|
||||
if(AppInitializer.GetLocalPlatform() == Platform.Browser)
|
||||
{
|
||||
Assert.Ignore("Not supported in browser");
|
||||
}
|
||||
|
||||
var app = OpenSample(AppDataMode.Clear);
|
||||
Assert.AreEqual("<INITIAL_VALUE>", app.Marked("LocalSettingValueTextBlock").GetDependencyPropertyValue<string>("Text"));
|
||||
app.Marked("SetLocalSettingButton").Tap();
|
||||
|
|
|
@ -133,10 +133,10 @@ namespace Uno.UITest.Selenium
|
|||
|
||||
Console.WriteLine($"Fetching Chrome driver version for Chrome [{chromeRawVersion}]");
|
||||
#if NET6_0_OR_GREATER
|
||||
var driverVersion = Task.Run(() =>
|
||||
var driverVersion = Task.Run(async () =>
|
||||
{
|
||||
using var client = new HttpClient();
|
||||
return client.GetStringAsync(chromeDriverLatestVersionUri);
|
||||
return await client.GetStringAsync(chromeDriverLatestVersionUri);
|
||||
}).Result;
|
||||
#else
|
||||
var driverVersion = new WebClient().DownloadString(chromeDriverLatestVersionUri);
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Selenium.WebDriver" Version="4.8.2" />
|
||||
<PackageReference Include="Selenium.WebDriver" Version="4.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче