Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update selenium-utils to preview19 #1882

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void CheckOnlyOneSpaRouteLink(IBrowserWrapper browser)
browser.NavigateToUrl(SamplesRouteUrls.ControlSamples_SpaContentPlaceHolder_HistoryApi_MultiSpaDefault);

var defaultUrl = browser.CurrentUrl;
var baseUrl = browser.CurrentUrl.Substring(0, browser.CurrentUrlPath.LastIndexOf('/'));
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
Loading