Skip to content

Commit 0cc2cf0

Browse files
Test fixes (#54825)
1 parent 1c8f20b commit 0cc2cf0

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

eng/Versions.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@
314314
<NewtonsoftJsonBsonVersion>1.0.2</NewtonsoftJsonBsonVersion>
315315
<NewtonsoftJsonVersion>13.0.3</NewtonsoftJsonVersion>
316316
<NSwagApiDescriptionClientVersion>13.0.4</NSwagApiDescriptionClientVersion>
317-
<PhotinoNETVersion>2.4.0</PhotinoNETVersion>
317+
<PhotinoNETVersion>2.5.2</PhotinoNETVersion>
318318
<MicrosoftPlaywrightVersion>1.28.0</MicrosoftPlaywrightVersion>
319319
<PollyExtensionsHttpVersion>3.0.0</PollyExtensionsHttpVersion>
320320
<PollyVersion>7.2.4</PollyVersion>

src/Components/test/E2ETest/ServerRenderingTests/FormHandlingTests/FormWithParentBindingContextTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ public void SubmitButtonFormenctypeAttributeOverridesEnhancedFormEnctype()
14691469
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54757")]
14701470
public void EnhancedFormThatCallsNavigationManagerRefreshDoesNotPushHistoryEntry()
14711471
{
1472-
GoTo("about:blank");
1472+
Navigate("about:blank");
14731473

14741474
var startUrl = Browser.Url;
14751475
GoTo("forms/form-that-calls-navigation-manager-refresh");
@@ -1492,7 +1492,7 @@ public void EnhancedFormThatCallsNavigationManagerRefreshDoesNotPushHistoryEntry
14921492
[QuarantinedTest("https://github.com/dotnet/aspnetcore/issues/54757")]
14931493
public void EnhancedFormThatCallsNavigationManagerRefreshDoesNotPushHistoryEntry_Streaming()
14941494
{
1495-
GoTo("about:blank");
1495+
Navigate("about:blank");
14961496

14971497
var startUrl = Browser.Url;
14981498
GoTo("forms/form-that-calls-navigation-manager-refresh-streaming");

src/Components/test/E2ETest/Tests/ThreadingAppHostedTest.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Microsoft.AspNetCore.Components.E2ETest.Tests;
1212

1313
public class ThreadingHostedAppTest
14-
: ServerTestBase<ThreadingHostedAppTest.ThreadingAppServerSiteFixture>, IDisposable
14+
: ServerTestBase<ThreadingHostedAppTest.ThreadingAppServerSiteFixture>
1515
{
1616
public class ThreadingAppServerSiteFixture : AspNetSiteServerFixture
1717
{
@@ -110,11 +110,4 @@ private void WaitUntilLoaded()
110110
var app = Browser.Exists(By.TagName("app"));
111111
Browser.NotEqual("Loading...", () => app.Text);
112112
}
113-
114-
public void Dispose()
115-
{
116-
// Make the tests run faster by navigating back to the home page when we are done
117-
// If we don't, then the next test will reload the whole page before it starts
118-
Browser.Exists(By.LinkText("Home")).Click();
119-
}
120113
}

src/Components/test/E2ETest/Tests/ThreadingAppTest.cs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Microsoft.AspNetCore.Components.E2ETest.Tests;
1212

1313
public class ThreadingAppTest
14-
: ServerTestBase<BlazorWasmTestAppFixture<ThreadingApp.Program>>, IDisposable
14+
: ServerTestBase<BlazorWasmTestAppFixture<ThreadingApp.Program>>
1515
{
1616
public ThreadingAppTest(
1717
BrowserFixture browserFixture,
@@ -127,11 +127,4 @@ private void WaitUntilLoaded()
127127
var app = Browser.Exists(By.TagName("app"));
128128
Browser.NotEqual("Loading...", () => app.Text);
129129
}
130-
131-
public void Dispose()
132-
{
133-
// Make the tests run faster by navigating back to the home page when we are done
134-
// If we don't, then the next test will reload the whole page before it starts
135-
Browser.Exists(By.LinkText("Home")).Click();
136-
}
137130
}

0 commit comments

Comments
 (0)