|
|
|
@ -10,7 +10,7 @@ using NzbDrone.Automation.Test.PageModel;
|
|
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
|
using NzbDrone.Test.Common;
|
|
|
|
|
using OpenQA.Selenium;
|
|
|
|
|
using OpenQA.Selenium.Firefox;
|
|
|
|
|
using OpenQA.Selenium.Chrome;
|
|
|
|
|
using OpenQA.Selenium.Remote;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Automation.Test
|
|
|
|
@ -35,12 +35,12 @@ namespace NzbDrone.Automation.Test
|
|
|
|
|
[OneTimeSetUp]
|
|
|
|
|
public void SmokeTestSetup()
|
|
|
|
|
{
|
|
|
|
|
var options = new FirefoxOptions();
|
|
|
|
|
var options = new ChromeOptions();
|
|
|
|
|
options.AddArguments("--headless");
|
|
|
|
|
var service = FirefoxDriverService.CreateDefaultService();
|
|
|
|
|
var service = ChromeDriverService.CreateDefaultService();
|
|
|
|
|
|
|
|
|
|
// Timeout as windows automation tests seem to take alot longer to get going
|
|
|
|
|
driver = new FirefoxDriver(service, options, new TimeSpan(0, 4, 0));
|
|
|
|
|
driver = new ChromeDriver(service, options, new TimeSpan(0, 3, 0));
|
|
|
|
|
|
|
|
|
|
_runner = new NzbDroneRunner(LogManager.GetCurrentClassLogger());
|
|
|
|
|
_runner.KillAll();
|
|
|
|
|