diff --git a/src/Samples/Tests/Tests/Control/SpaContentPlaceHolderTests.cs b/src/Samples/Tests/Tests/Control/SpaContentPlaceHolderTests.cs
index 403ff284d4..c795b92f4d 100644
--- a/src/Samples/Tests/Tests/Control/SpaContentPlaceHolderTests.cs
+++ b/src/Samples/Tests/Tests/Control/SpaContentPlaceHolderTests.cs
@@ -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();
diff --git a/src/Samples/Tests/Tests/DotVVM.Samples.Tests.csproj b/src/Samples/Tests/Tests/DotVVM.Samples.Tests.csproj
index 3f1ad03e6e..93e0b67833 100644
--- a/src/Samples/Tests/Tests/DotVVM.Samples.Tests.csproj
+++ b/src/Samples/Tests/Tests/DotVVM.Samples.Tests.csproj
@@ -9,12 +9,12 @@
-
-
-
+
+
+
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
@@ -22,9 +22,9 @@
-
-
-
+
+
+
diff --git a/src/Samples/Tests/Tests/Feature/PostbackConcurrencyTests.cs b/src/Samples/Tests/Tests/Feature/PostbackConcurrencyTests.cs
index d7f2d84662..f5c19cba27 100644
--- a/src/Samples/Tests/Tests/Feature/PostbackConcurrencyTests.cs
+++ b/src/Samples/Tests/Tests/Feature/PostbackConcurrencyTests.cs
@@ -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);