Skip to content

Commit e52bf69

Browse files
committed
excluding some tests based on GitHub runner OS
1 parent 46d395a commit e52bf69

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ public async Task ZoomFactorProperty_check()
104104
ok.Should().Be(2.0);
105105
}
106106

107-
[Fact(Timeout = 20000)]
107+
[SkippableFact(Timeout = 20000)]
108108
public async Task GetSetZoomLevel_check()
109109
{
110+
Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");
110111
await fx.MainWindow.WebContents.GetZoomLevelAsync();
111112
var ok = await fx.MainWindow.WebContents.GetZoomLevelAsync();
112113
ok.Should().Be(0);
@@ -169,7 +170,7 @@ public async Task AudioMutedProperty_check()
169170
fx.MainWindow.WebContents.AudioMuted.Should().BeTrue();
170171
}
171172

172-
[Fact(Timeout = 20000)]
173+
[SkippableFact(Timeout = 20000)]
173174
public async Task GetSetUserAgent_check()
174175
{
175176
Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");
@@ -181,7 +182,7 @@ public async Task GetSetUserAgent_check()
181182
ok.Should().Be("MyUserAgent/1.0");
182183
}
183184

184-
[Fact(Timeout = 20000)]
185+
[SkippableFact(Timeout = 20000)]
185186
public async Task UserAgentProperty_check()
186187
{
187188
Skip.If(Environment.GetEnvironmentVariable("GITHUB_RUN_ID") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");

0 commit comments

Comments
 (0)