2013-11-12 06:18:57 +00:00
|
|
|
|
using FluentAssertions;
|
|
|
|
|
using NUnit.Framework;
|
2013-11-18 03:34:31 +00:00
|
|
|
|
using NzbDrone.Automation.Test.PageModel;
|
|
|
|
|
using OpenQA.Selenium;
|
2013-11-12 06:18:57 +00:00
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Automation.Test
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
|
|
|
|
public class MainPagesTest : AutomationTest
|
|
|
|
|
{
|
2013-11-18 03:34:31 +00:00
|
|
|
|
private PageBase page;
|
|
|
|
|
|
|
|
|
|
[SetUp]
|
|
|
|
|
public void Setup()
|
|
|
|
|
{
|
|
|
|
|
page = new PageBase(driver);
|
|
|
|
|
}
|
|
|
|
|
|
2013-11-12 06:18:57 +00:00
|
|
|
|
[Test]
|
|
|
|
|
public void series_page()
|
|
|
|
|
{
|
2013-11-18 03:34:31 +00:00
|
|
|
|
page.SeriesNavIcon.Click();
|
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
page.FindByClass("iv-series-index-seriesindexlayout").Should().NotBeNull();
|
2013-11-12 06:18:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void calendar_page()
|
|
|
|
|
{
|
2013-11-18 03:34:31 +00:00
|
|
|
|
page.CalendarNavIcon.Click();
|
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
|
|
|
|
page.FindByClass("iv-calendar-calendarlayout").Should().NotBeNull();
|
2013-11-12 06:18:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
2014-10-12 07:29:09 +00:00
|
|
|
|
public void activity_page()
|
2013-11-12 06:18:57 +00:00
|
|
|
|
{
|
2014-10-12 07:29:09 +00:00
|
|
|
|
page.ActivityNavIcon.Click();
|
2013-11-18 03:34:31 +00:00
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
2014-10-12 07:29:09 +00:00
|
|
|
|
page.FindByClass("iv-activity-activitylayout").Should().NotBeNull();
|
2013-11-12 06:18:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
2014-02-23 22:53:33 +00:00
|
|
|
|
public void wanted_page()
|
2013-11-12 06:18:57 +00:00
|
|
|
|
{
|
2014-02-23 22:53:33 +00:00
|
|
|
|
page.WantedNavIcon.Click();
|
2013-11-18 03:34:31 +00:00
|
|
|
|
page.WaitForNoSpinner();
|
|
|
|
|
|
2014-02-23 22:53:33 +00:00
|
|
|
|
page.FindByClass("iv-wanted-missing-missinglayout").Should().NotBeNull();
|
2013-11-12 06:18:57 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void system_page()
|
|
|
|
|
{
|
2013-11-18 03:34:31 +00:00
|
|
|
|
page.SystemNavIcon.Click();
|
|
|
|
|
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();
|
2013-11-12 06:18:57 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|