Skip to content

Commit

Permalink
Update testing
Browse files Browse the repository at this point in the history
  • Loading branch information
budcribar committed Feb 21, 2024
1 parent 545896b commit 580ae7d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions testassets/NUnitTestProject/TestBlazorWpfControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ namespace WebdriverTestProject
{
public static class BlazorWebViewFactory
{
private static Thread staThread;
private static Thread? staThread;
private static AutoResetEvent threadInitialized = new AutoResetEvent(false);
private static AutoResetEvent threadShutdown = new AutoResetEvent(false);

public static BlazorWebView CreateBlazorWebView()
public static BlazorWebView? CreateBlazorWebView()
{
BlazorWebView control = null;
BlazorWebView? control = null;

staThread = new Thread(() =>
{
// Ensure an Application instance is available
Application app = null;
Application? app = null;
if (Application.Current == null)
{
app = new Application { ShutdownMode = ShutdownMode.OnExplicitShutdown };
Expand Down
4 changes: 2 additions & 2 deletions testassets/NUnitTestProject/TestLocalBlazorForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ public void Setup()
Directory.SetCurrentDirectory(Path.GetDirectoryName(BinaryLocation()) ?? string.Empty);
var options = new EdgeOptions
{
BrowserVersion = "121.0",
UseWebView = true,
BinaryLocation = executable
};

try
{
Log.Handlers.Add(new FileLogHandler(Path.Combine(Path.GetDirectoryName(binary), "Selenium.log")));
Log.Handlers.Add(new FileLogHandler(Path.Combine(Path.GetDirectoryName(binary) ?? "", "Selenium.log")));
Log.SetLevel(LogEventLevel.Trace);

driver = new EdgeDriver(options);
Expand All @@ -65,7 +66,6 @@ public void Test10Clicks()
TestClient(10);
}

[Ignore]
[TestMethod]
public void Test100Clicks()
{
Expand Down
6 changes: 3 additions & 3 deletions testassets/NUnitTestProject/WebdriverTestProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="MSTest.TestAdapter" Version="3.2.1" />
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PackageReference Include="coverlet.collector" Version="6.0.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MSTest.TestFramework" Version="3.2.1" />
<PackageReference Include="PeakSWC.RemoteBlazorWebView.Wpf" Version="8.0.1" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="121.0.6167.8500" />
<PackageReference Include="Selenium.WebDriver" Version="4.17.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="122.0.6261.5700" />
<PackageReference Include="Selenium.WebDriver" Version="4.18.1" />
<PackageReference Include="Selenium.WebDriver.MSEdgeDriver" Version="121.0.2277.71-pre" />
<PackageReference Include="WebView2.Runtime.X64" Version="121.0.2277.128" />
<Protobuf Include="..\..\src\Protos\webview.proto" GrpcServices="Client" Link="Protos\webview.proto" />
Expand Down

0 comments on commit 580ae7d

Please sign in to comment.