|
|
@ -1,44 +1,79 @@
|
|
|
|
using FluentAssertions;
|
|
|
|
using FluentAssertions;
|
|
|
|
using NUnit.Framework;
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
|
|
|
using NzbDrone.Automation.Test.PageModel;
|
|
|
|
|
|
|
|
using OpenQA.Selenium;
|
|
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Automation.Test
|
|
|
|
namespace NzbDrone.Automation.Test
|
|
|
|
{
|
|
|
|
{
|
|
|
|
[TestFixture]
|
|
|
|
[TestFixture]
|
|
|
|
public class MainPagesTest : AutomationTest
|
|
|
|
public class MainPagesTest : AutomationTest
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
private PageBase page;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
|
|
|
|
public void Setup()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
page = new PageBase(driver);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void series_page()
|
|
|
|
public void series_page()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
driver.FindElementByLinkText("Series").Click();
|
|
|
|
page.SeriesNavIcon.Click();
|
|
|
|
driver.FindElementByClassName("iv-series-index-seriesindexlayout").Should().NotBeNull();
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
page.FindByClass("iv-series-index-seriesindexlayout").Should().NotBeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void calendar_page()
|
|
|
|
public void calendar_page()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
driver.FindElementByLinkText("Calendar").Click();
|
|
|
|
page.CalendarNavIcon.Click();
|
|
|
|
driver.FindElementByClassName("iv-calendar-calendarlayout").Should().NotBeNull();
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.FindByClass("iv-calendar-calendarlayout").Should().NotBeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void history_page()
|
|
|
|
public void history_page()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
driver.FindElementByLinkText("History").Click();
|
|
|
|
page.HistoryNavIcon.Click();
|
|
|
|
driver.FindElementByClassName("iv-history-historylayout").Should().NotBeNull();
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.FindByClass("iv-history-historylayout").Should().NotBeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void missing_page()
|
|
|
|
public void missing_page()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
driver.FindElementByLinkText("Settings").Click();
|
|
|
|
page.MissingNavIcon.Click();
|
|
|
|
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.FindByClass("iv-missing-missinglayout").Should().NotBeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void system_page()
|
|
|
|
public void system_page()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
driver.FindElementByLinkText("System").Click();
|
|
|
|
page.SystemNavIcon.Click();
|
|
|
|
driver.FindElementByClassName("iv-system-systemlayout").Should().NotBeNull();
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.FindByClass("iv-system-systemlayout").Should().NotBeNull();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void add_series_page()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
page.SeriesNavIcon.Click();
|
|
|
|
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.Find(By.LinkText("Add Series")).Click();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page.FindByClass("iv-addseries-addserieslayout").Should().NotBeNull();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|