File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -208,8 +208,8 @@ void CheckOnlyOneSpaRouteLink(IBrowserWrapper browser)
208
208
RunInAllBrowsers ( browser => {
209
209
browser . NavigateToUrl ( SamplesRouteUrls . ControlSamples_SpaContentPlaceHolder_HistoryApi_MultiSpaDefault ) ;
210
210
211
- var defaultUrl = browser . CurrentUrl ;
212
- var baseUrl = browser . CurrentUrl . Substring ( 0 , browser . CurrentUrlPath . LastIndexOf ( '/' ) ) ;
211
+ var defaultUrl = browser . CurrentUrlPath ;
212
+ var baseUrl = defaultUrl . Substring ( 0 , defaultUrl . LastIndexOf ( '/' ) ) ;
213
213
var routeLinks = browser . FindElements ( "a" ) ;
214
214
215
215
routeLinks . First ( ) . Click ( ) ;
Original file line number Diff line number Diff line change 9
9
</PropertyGroup >
10
10
11
11
<ItemGroup >
12
- <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.7.1 " />
13
- <PackageReference Include =" Selenium.Support" Version =" 4.11 .0" />
14
- <PackageReference Include =" Selenium.WebDriver" Version =" 4.11 .0" />
12
+ <PackageReference Include =" Microsoft.NET.Test.Sdk" Version =" 17.10.0 " />
13
+ <PackageReference Include =" Selenium.Support" Version =" 4.21 .0" />
14
+ <PackageReference Include =" Selenium.WebDriver" Version =" 4.21 .0" />
15
15
<PackageReference Include =" System.Text.Encoding.CodePages" Version =" 5.0.0" />
16
16
<PackageReference Include =" System.ValueTuple" Version =" 4.4.0" />
17
- <PackageReference Include =" xunit" Version =" 2.8.0 " />
17
+ <PackageReference Include =" xunit" Version =" 2.8.1 " />
18
18
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.0" >
19
19
<PrivateAssets >all</PrivateAssets >
20
20
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
21
21
</PackageReference >
22
22
</ItemGroup >
23
23
24
24
<ItemGroup Condition =" '$(LocalSeleniumUtilsPath)' == ''" >
25
- <PackageReference Include =" Riganti.Selenium.DotVVM" Version =" 3.0.0-preview15 -final" />
26
- <PackageReference Include =" Riganti.Selenium.AssertApi" Version =" 3.0.0-preview15 -final" />
27
- <PackageReference Include =" Riganti.Selenium.xUnitIntegration" Version =" 3.0.0-preview15 -final" />
25
+ <PackageReference Include =" Riganti.Selenium.DotVVM" Version =" 3.0.0-preview19 -final" />
26
+ <PackageReference Include =" Riganti.Selenium.AssertApi" Version =" 3.0.0-preview19 -final" />
27
+ <PackageReference Include =" Riganti.Selenium.xUnitIntegration" Version =" 3.0.0-preview19 -final" />
28
28
</ItemGroup >
29
29
<ItemGroup Condition =" '$(LocalSeleniumUtilsPath)' != ''" >
30
30
<ProjectReference Include =" $(LocalSeleniumUtilsPath)\src\Core\Riganti.Selenium.AssertApi\Riganti.Selenium.AssertApi.csproj" />
Original file line number Diff line number Diff line change @@ -264,9 +264,9 @@ public void Feature_PostbackConcurrency_RedirectPostbackQueueSpa_PostbackFromPre
264
264
while ( ! browser . CurrentUrl . Contains ( "?time" ) )
265
265
{
266
266
attempt ++ ;
267
- if ( attempt > 50 )
267
+ if ( attempt > 100 ) // the site blocks for about 7 seconds before the URL changes
268
268
{
269
- Assert . Fail ( "The redirect didn't happen. " ) ;
269
+ Assert . Fail ( $ "The redirect didn't happen, current URL: { browser . CurrentUrl } ") ;
270
270
}
271
271
272
272
Thread . Sleep ( 100 ) ;
You can’t perform that action at this time.
0 commit comments