1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-09-17 15:02:34 +02:00

Switch Automation to Chrome for Test Speed

This commit is contained in:
Qstick 2020-08-21 20:57:42 -04:00
parent aba9cedb78
commit fa3914c36a
4 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,4 @@
import classNames from 'classnames';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
import styles from './LoadingIndicator.css'; import styles from './LoadingIndicator.css';
@ -13,7 +14,7 @@ function LoadingIndicator({ className, rippleClassName, size }) {
style={{ height }} style={{ height }}
> >
<div <div
className={styles.rippleContainer} className={classNames(styles.rippleContainer, 'followingBalls')}
style={{ width, height }} style={{ width, height }}
> >
<div <div

View File

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

View File

@ -37,7 +37,7 @@ public void WaitForNoSpinner(int timeout = 30)
{ {
try try
{ {
IWebElement element = d.FindElement(By.Id("followingBalls")); IWebElement element = d.FindElement(By.ClassName("followingBalls"));
return !element.Displayed; return !element.Displayed;
} }
catch (NoSuchElementException) catch (NoSuchElementException)

View File

@ -8,7 +8,7 @@
<PackageReference Include="NUnit3TestAdapter" Version="3.16.1" /> <PackageReference Include="NUnit3TestAdapter" Version="3.16.1" />
<PackageReference Include="NunitXml.TestLogger" Version="2.1.41" /> <PackageReference Include="NunitXml.TestLogger" Version="2.1.41" />
<PackageReference Include="Selenium.Support" Version="3.141.0" /> <PackageReference Include="Selenium.Support" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver.GeckoDriver" Version="0.27.0" /> <PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="84.0.4147.3001" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\NzbDrone.Test.Common\Radarr.Test.Common.csproj" /> <ProjectReference Include="..\NzbDrone.Test.Common\Radarr.Test.Common.csproj" />