Skip to content

Commit

Permalink
Update selenium-utils to preview19
Browse files Browse the repository at this point in the history
  • Loading branch information
exyi committed Nov 3, 2024
1 parent 1b8d606 commit 53f8c62
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/Samples/Tests/Tests/Control/SpaContentPlaceHolderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ void CheckOnlyOneSpaRouteLink(IBrowserWrapper browser)
RunInAllBrowsers(browser => {
browser.NavigateToUrl(SamplesRouteUrls.ControlSamples_SpaContentPlaceHolder_HistoryApi_MultiSpaDefault);

var defaultUrl = browser.CurrentUrl;
var baseUrl = browser.CurrentUrl.Substring(0, browser.CurrentUrlPath.LastIndexOf('/'));
var defaultUrl = browser.CurrentUrlPath;
var baseUrl = defaultUrl.Substring(0, defaultUrl.LastIndexOf('/'));
var routeLinks = browser.FindElements("a");

routeLinks.First().Click();
Expand Down
14 changes: 7 additions & 7 deletions src/Samples/Tests/Tests/DotVVM.Samples.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="Selenium.Support" Version="4.11.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="Selenium.Support" Version="4.21.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.21.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="5.0.0" />
<PackageReference Include="System.ValueTuple" Version="4.4.0" />
<PackageReference Include="xunit" Version="2.8.0" />
<PackageReference Include="xunit" Version="2.8.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup Condition="'$(LocalSeleniumUtilsPath)' == ''">
<PackageReference Include="Riganti.Selenium.DotVVM" Version="3.0.0-preview15-final" />
<PackageReference Include="Riganti.Selenium.AssertApi" Version="3.0.0-preview15-final" />
<PackageReference Include="Riganti.Selenium.xUnitIntegration" Version="3.0.0-preview15-final" />
<PackageReference Include="Riganti.Selenium.DotVVM" Version="3.0.0-preview19-final" />
<PackageReference Include="Riganti.Selenium.AssertApi" Version="3.0.0-preview19-final" />
<PackageReference Include="Riganti.Selenium.xUnitIntegration" Version="3.0.0-preview19-final" />
</ItemGroup>
<ItemGroup Condition="'$(LocalSeleniumUtilsPath)' != ''">
<ProjectReference Include="$(LocalSeleniumUtilsPath)\src\Core\Riganti.Selenium.AssertApi\Riganti.Selenium.AssertApi.csproj" />
Expand Down
4 changes: 2 additions & 2 deletions src/Samples/Tests/Tests/Feature/PostbackConcurrencyTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ public void Feature_PostbackConcurrency_RedirectPostbackQueueSpa_PostbackFromPre
while (!browser.CurrentUrl.Contains("?time"))
{
attempt++;
if (attempt > 50)
if (attempt > 100) // the site blocks for about 7 seconds before the URL changes
{
Assert.Fail("The redirect didn't happen.");
Assert.Fail($"The redirect didn't happen, current URL: {browser.CurrentUrl}");
}

Thread.Sleep(100);
Expand Down

0 comments on commit 53f8c62

Please sign in to comment.