2011-12-19 06:08:36 +01:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
|
using NzbDrone.Web.UI.Automation.Fluent;
|
|
|
|
|
|
|
|
|
|
namespace NzbDrone.Web.UI.Automation
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2012-01-15 02:54:34 +01:00
|
|
|
|
[Explicit]
|
2011-12-19 06:08:36 +01:00
|
|
|
|
public class BasicPageFixture : AutomationTestBase
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void HomePage()
|
|
|
|
|
{
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.GivenHomePage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
CaptureScreen();
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.Should().BeNzbDronePage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void HistoryPage()
|
|
|
|
|
{
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.GivenHistoryPage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
CaptureScreen();
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.Should().BeNzbDronePage();
|
|
|
|
|
|
2011-12-19 06:08:36 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void MissingPage()
|
|
|
|
|
{
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.GivenMissingPage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
CaptureScreen();
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.Should().BeNzbDronePage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
public void SettingsPage()
|
|
|
|
|
{
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.GivenSettingsPage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
CaptureScreen();
|
2011-12-19 06:38:52 +01:00
|
|
|
|
Driver.Should().BeNzbDronePage();
|
2011-12-19 06:08:36 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|