Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 committed Sep 26, 2023
1 parent c8909d3 commit e2447f8
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions Percy.Tests/AppPercyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public class AppPercyTest

public AppPercyTest()
{
AppPercy.cache.Clear();
TestHelper.UnsetEnvVariables();
Environment.SetEnvironmentVariable("PERCY_DISABLE_REMOTE_UPLOADS", "true");
mockDriver = new MockDriverObject();
mockDriver.SessionId = "session-1";
CliWrapper.Healthcheck = () =>
Expand Down Expand Up @@ -47,9 +50,6 @@ private static String LogMessage(String label, String message, String color = "3
public void TestName_WithAndroid_V4()
{
// Arrange
AppPercy.cache.Clear();
TestHelper.UnsetEnvVariables();
Environment.SetEnvironmentVariable("PERCY_DISABLE_REMOTE_UPLOADS", "true");
mockDriver.SetCapability(MetadataBuilder.CapabilityBuilder("Android"));
mockDriver.setCommandExecutor("https://browserstack.com/wd/hub");
// Act
Expand All @@ -67,9 +67,6 @@ public void TestName_WithAndroid_V4()
public void TestName_WithIOS_V4()
{
// Arrange
AppPercy.cache.Clear();
TestHelper.UnsetEnvVariables();
Environment.SetEnvironmentVariable("PERCY_DISABLE_REMOTE_UPLOADS", "true");
mockDriver.SetCapability(MetadataBuilder.CapabilityBuilder("iOS"));
mockDriver.setCommandExecutor("https://browserstack.com/wd/hub");

Expand All @@ -88,9 +85,6 @@ public void TestName_WithIOS_V4()
public void TestName_WithAndroid_V5()
{
// Arrange
AppPercy.cache.Clear();
TestHelper.UnsetEnvVariables();
Environment.SetEnvironmentVariable("PERCY_DISABLE_REMOTE_UPLOADS", "true");
// Setting v5
mockDriver.setIsV5(true);
mockDriver.SetCapability(MetadataBuilder.CapabilityBuilder("Android"));
Expand All @@ -111,9 +105,6 @@ public void TestName_WithAndroid_V5()
public void TestName_WithIOS_V5()
{
// Arrange
AppPercy.cache.Clear();
TestHelper.UnsetEnvVariables();
Environment.SetEnvironmentVariable("PERCY_DISABLE_REMOTE_UPLOADS", "true");
// Setting v5
mockDriver.setIsV5(true);
mockDriver.SetCapability(MetadataBuilder.CapabilityBuilder("iOS"));
Expand All @@ -134,9 +125,6 @@ public void TestName_WithIOS_V5()
public void TestName_ShouldThrowError()
{
// Arrange
AppPercy.cache.Clear();
TestHelper.UnsetEnvVariables();
Environment.SetEnvironmentVariable("PERCY_DISABLE_REMOTE_UPLOADS", "true");
// Setting v5
mockDriver.setIsV5(true);
mockDriver.SetCapability(MetadataBuilder.CapabilityBuilder("iOS"));
Expand Down

0 comments on commit e2447f8

Please sign in to comment.