Skip to content

Commit ce8a86b

Browse files
committed
trying to fix some tests on CI
1 parent 7eaf84a commit ce8a86b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ElectronNET.IntegrationTests/Tests/WebContentsTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public async Task Can_basic_print()
7777
[SkippableFact(Timeout = 20000)]
7878
public async Task GetPrintersAsync_check()
7979
{
80-
Skip.If(Environment.GetEnvironmentVariable("GITHUB_TOKEN") != null, "Skipping printer test in CI environment.");
80+
Skip.If(Environment.GetEnvironmentVariable("GITHUB_CONTEXT") != null, "Skipping printer test in CI environment.");
8181
var info = await fx.MainWindow.WebContents.GetPrintersAsync();
8282
info.Should().NotBeNull();
8383
}
@@ -129,7 +129,7 @@ public async Task ZoomLevelProperty_check()
129129
[SkippableFact(Timeout = 20000)]
130130
public async Task DevTools_check()
131131
{
132-
Skip.If(Environment.GetEnvironmentVariable("GITHUB_TOKEN") != null, "Skipping test in CI environment.");
132+
Skip.If(Environment.GetEnvironmentVariable("GITHUB_CONTEXT") != null, "Skipping test in CI environment.");
133133
fx.MainWindow.WebContents.IsDevToolsOpened().Should().BeFalse();
134134
fx.MainWindow.WebContents.OpenDevTools();
135135
await Task.Delay(1000);
@@ -161,7 +161,7 @@ public async Task GetSetAudioMuted_check()
161161
[SkippableFact(Timeout = 20000)]
162162
public async Task AudioMutedProperty_check()
163163
{
164-
Skip.If(Environment.GetEnvironmentVariable("GITHUB_TOKEN") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");
164+
Skip.If(Environment.GetEnvironmentVariable("GITHUB_CONTEXT") != null && RuntimeInformation.IsOSPlatform(OSPlatform.Windows), "Skipping test on Windows CI.");
165165
fx.MainWindow.WebContents.AudioMuted.Should().BeFalse();
166166
fx.MainWindow.WebContents.AudioMuted = true;
167167
fx.MainWindow.WebContents.AudioMuted.Should().BeTrue();

0 commit comments

Comments
 (0)