Browse Source

fix(Test) Fixing test automation not being headless in dev

main
Jonathan McCaffrey 4 years ago
parent
commit
b1b2c88ae7
  1. 6
      TestAutomation/BaseTest.cs

6
TestAutomation/BaseTest.cs

@ -34,7 +34,11 @@ public class BaseTest
var options = new FirefoxOptions(); var options = new FirefoxOptions();
options.AcceptInsecureCertificates = true; options.AcceptInsecureCertificates = true;
// options.AddArgument("--headless");
if (DeploymentType.Equals(DeploymentType.Dev))
{
options.AddArgument("--headless");
}
options.AddArgument("--ignore-certificate-errors"); options.AddArgument("--ignore-certificate-errors");
options.AddArgument("--start-maximized"); options.AddArgument("--start-maximized");
options.AddArgument("--test-type"); options.AddArgument("--test-type");

Loading…
Cancel
Save