mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-30 19:50:15 -07:00
Automation ;)
This commit is contained in:
parent
1ee2ae8210
commit
b8def06782
20 changed files with 13853 additions and 11 deletions
41
NzbDrone.Web.UI.Test/Fluent/NavigationExtention.cs
Normal file
41
NzbDrone.Web.UI.Test/Fluent/NavigationExtention.cs
Normal file
|
@ -0,0 +1,41 @@
|
|||
using System.Linq;
|
||||
using OpenQA.Selenium.Remote;
|
||||
|
||||
namespace NzbDrone.Web.UI.Automation.Fluent
|
||||
{
|
||||
public static class NavigationExtention
|
||||
{
|
||||
|
||||
private const string baseUrl = "http://localhost:8989/";
|
||||
|
||||
public static RemoteWebDriver GivenHomePage(this RemoteWebDriver driver)
|
||||
{
|
||||
driver.Navigate().GoToUrl(baseUrl);
|
||||
return driver;
|
||||
}
|
||||
|
||||
public static RemoteWebDriver GivenSettingsPage(this RemoteWebDriver driver)
|
||||
{
|
||||
driver.Navigate().GoToUrl(baseUrl + "settings");
|
||||
return driver;
|
||||
}
|
||||
|
||||
public static RemoteWebDriver GivenUpcomingPage(this RemoteWebDriver driver)
|
||||
{
|
||||
driver.Navigate().GoToUrl(baseUrl + "Upcoming");
|
||||
return driver;
|
||||
}
|
||||
|
||||
public static RemoteWebDriver GivenHistoryPage(this RemoteWebDriver driver)
|
||||
{
|
||||
driver.Navigate().GoToUrl(baseUrl + "History");
|
||||
return driver;
|
||||
}
|
||||
|
||||
public static RemoteWebDriver GivenMissingPage(this RemoteWebDriver driver)
|
||||
{
|
||||
driver.Navigate().GoToUrl(baseUrl + "Missing");
|
||||
return driver;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue