@@ -10,7 +10,6 @@ namespace NuGetUtility.Test.LicenseValidator
10
10
[ TestFixture ]
11
11
public class UrlToLicenseMappingTest
12
12
{
13
- [ Ignore ( "chrome" ) ]
14
13
[ Parallelizable ( scope : ParallelScope . All ) ]
15
14
[ TestCaseSource ( typeof ( UrlToLicenseMapping ) , nameof ( UrlToLicenseMapping . Default ) ) ]
16
15
public async Task License_Should_Be_Available_And_Match_Expected_License ( KeyValuePair < Uri , string > mappedValue )
@@ -21,7 +20,7 @@ public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValu
21
20
try
22
21
{
23
22
using var driver = new DisposableWebDriver ( ) ;
24
- driver . Navigate ( ) . GoToUrl ( mappedValue . Key . ToString ( ) ) ;
23
+ await driver . Navigate ( ) . GoToUrlAsync ( mappedValue . Key . ToString ( ) ) ;
25
24
26
25
await Verify ( driver . FindElement ( By . TagName ( "body" ) ) . Text ) . HashParameters ( ) . UseStringComparer ( CompareLicense ) ;
27
26
return ;
@@ -33,14 +32,14 @@ public async Task License_Should_Be_Available_And_Match_Expected_License(KeyValu
33
32
throw ;
34
33
}
35
34
retryCount ++ ;
36
- TestContext . Out . WriteLine ( $ "Failed to check license for the { retryCount } time - retrying") ;
37
- TestContext . Out . WriteLine ( e ) ;
35
+ await TestContext . Out . WriteLineAsync ( $ "Failed to check license for the { retryCount } time - retrying") ;
36
+ await TestContext . Out . WriteLineAsync ( e . ToString ( ) ) ;
38
37
}
39
38
}
40
39
41
40
}
42
41
43
- private Task < CompareResult > CompareLicense ( string received , string verified , IReadOnlyDictionary < string , object > context )
42
+ private static Task < CompareResult > CompareLicense ( string received , string verified , IReadOnlyDictionary < string , object > context )
44
43
{
45
44
return Task . FromResult ( new CompareResult ( ( ! string . IsNullOrWhiteSpace ( verified ) ) && received . Contains ( verified ) ) ) ;
46
45
}
0 commit comments