From e52bf69dee838951cba56cecc687d58711a32e60 Mon Sep 17 00:00:00 2001 From: agracio Date: Thu, 4 Dec 2025 20:36:41 +0000 Subject: [PATCH] excluding some tests based on GitHub runner OS --- src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs b/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs index d3ac640..0cfe5f8 100644 --- a/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs +++ b/src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs @@ -104,9 +104,10 @@ namespace ElectronNET.IntegrationTests.Tests ok.Should().Be(2.0); } - [Fact(Timeout = 20000)] + [SkippableFact(Timeout = 20000)] public async Task GetSetZoomLevel_check() { + Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI."); await fx.MainWindow.WebContents.GetZoomLevelAsync(); var ok = await fx.MainWindow.WebContents.GetZoomLevelAsync(); ok.Should().Be(0); @@ -169,7 +170,7 @@ namespace ElectronNET.IntegrationTests.Tests fx.MainWindow.WebContents.AudioMuted.Should().BeTrue(); } - [Fact(Timeout = 20000)] + [SkippableFact(Timeout = 20000)] public async Task GetSetUserAgent_check() { Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI."); @@ -181,7 +182,7 @@ namespace ElectronNET.IntegrationTests.Tests ok.Should().Be("MyUserAgent/1.0"); } - [Fact(Timeout = 20000)] + [SkippableFact(Timeout = 20000)] public async Task UserAgentProperty_check() { Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");