Beispiel #1
0
        public void SmokeTestSetup()
        {
            var options = new ChromeOptions();

            options.AddArguments("--headless");
            var service = ChromeDriverService.CreateDefaultService();

            // Timeout as windows automation tests seem to take alot longer to get going
            driver = new ChromeDriver(service, options, new TimeSpan(0, 3, 0));

            driver.Manage().Window.Size = new System.Drawing.Size(1920, 1080);

            _runner = new NzbDroneRunner(LogManager.GetCurrentClassLogger());
            _runner.KillAll();
            _runner.Start();

            driver.Url = "http://localhost:9696";

            var page = new PageBase(driver);

            page.WaitForNoSpinner();

            driver.ExecuteScript("window.Prowlarr.NameViews = true;");

            GetPageErrors().Should().BeEmpty();
        }
        protected override void StartTestTarget()
        {
            _runner = new NzbDroneRunner(LogManager.GetCurrentClassLogger());
            _runner.KillAll();

            _runner.Start();
        }
        //[SetUp]
        public void SmokeTestSetup()
        {
            _runner = new NzbDroneRunner();
            _runner.KillAll();

            _runner.Start();
            InitRestClients();
        }
Beispiel #4
0
        public void SmokeTestSetup()
        {
            driver = new FirefoxDriver();

            _runner = new NzbDroneRunner();
            _runner.KillAll();
            _runner.Start();

            driver.Url = "http://localhost:8989";

            var page = new PageBase(driver);

            page.WaitForNoSpinner();

            GetPageErrors().Should().BeEmpty();
        }
Beispiel #5
0
        public void SmokeTestSetup()
        {
            driver = new FirefoxDriver();

            _runner = new NzbDroneRunner(LogManager.GetCurrentClassLogger());
            _runner.KillAll();
            _runner.Start();

            driver.Url = "http://localhost:8989";

            var page = new PageBase(driver);

            page.WaitForNoSpinner();

            driver.ExecuteScript("window.Sonarr.NameViews = true;");

            GetPageErrors().Should().BeEmpty();
        }
Beispiel #6
0
        public void SmokeTestSetup()
        {
            _runner = new NzbDroneRunner(LogManager.GetCurrentClassLogger());
            _runner.KillAll();

            _runner.Start();
            InitRestClients();

            // Add Wombles
            var wombles = Indexers.Post(new Api.Indexers.IndexerResource
            {
                EnableRss = true,
                ConfigContract = "NullConfig",
                Implementation = "Wombles",
                Name = "Wombles",
                Protocol = Core.Indexers.DownloadProtocol.Usenet,
                Fields = new List<Api.ClientSchema.Field>()
            });
        }
Beispiel #7
0
        public void SmokeTestSetup()
        {
            var options = new FirefoxOptions();

            options.AddArguments("--headless");
            driver = new FirefoxDriver(options);

            _runner = new NzbDroneRunner(LogManager.GetCurrentClassLogger());
            _runner.KillAll();
            _runner.Start();

            driver.Url = "http://localhost:8383";

            var page = new PageBase(driver);

            page.WaitForNoSpinner();

            driver.ExecuteScript("window.Gamearr.NameViews = true;");

            GetPageErrors().Should().BeEmpty();
        }