Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/Readarr/src/commit/1301dc1b7bff2f794d15d892da41c969302257d6/NzbDrone.Web.UI.Test/Fluent/NavigationExtention.cs You should set ROOT_URL correctly, otherwise the web may not work correctly.
Readarr/NzbDrone.Web.UI.Test/Fluent/NavigationExtention.cs

42 lines
1.1 KiB

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;
}
}
}