Skip to content
Closed
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions src/Components/test/E2ETest/Tests/CircuitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.AspNetCore.E2ETesting;
using Microsoft.AspNetCore.InternalTesting;
using OpenQA.Selenium;
using OpenQA.Selenium.Support.Extensions;
using TestServer;
using Xunit.Abstractions;

Expand Down Expand Up @@ -48,6 +49,7 @@ public void ComponentLifecycleMethodThrowsExceptionTerminatesTheCircuit(string i
Browser.Exists(By.CssSelector("#blazor-error-ui[style='display: block;']"));

// Clicking the button again will trigger a server disconnect
Browser.ExecuteJavaScript("arguments[0].scrollIntoView();", targetButton);
targetButton.Click();

AssertLogContains("Connection disconnected.");
Expand All @@ -70,6 +72,7 @@ public void ComponentDisposeMethodThrowsExceptionTerminatesTheCircuit()
Browser.Exists(By.CssSelector("#blazor-error-ui[style='display: block;']"));

// Clicking it again causes the circuit to disconnect
Browser.ExecuteJavaScript("arguments[0].scrollIntoView();", targetButton);
targetButton.Click();
AssertLogContains("Connection disconnected.");
}
Expand Down