mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Take Screenshot on Automation tests for build status notifications
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System.Reflection;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Automation.Test.PageModel;
|
||||
@@ -21,6 +22,10 @@ namespace NzbDrone.Automation.Test
|
||||
{
|
||||
_page.LibraryNavIcon.Click();
|
||||
_page.WaitForNoSpinner();
|
||||
|
||||
var imageName = MethodBase.GetCurrentMethod().Name;
|
||||
TakeScreenshot(imageName);
|
||||
|
||||
_page.Find(By.CssSelector("div[class*='AuthorIndex']")).Should().NotBeNull();
|
||||
}
|
||||
|
||||
@@ -30,6 +35,9 @@ namespace NzbDrone.Automation.Test
|
||||
_page.CalendarNavIcon.Click();
|
||||
_page.WaitForNoSpinner();
|
||||
|
||||
var imageName = MethodBase.GetCurrentMethod().Name;
|
||||
TakeScreenshot(imageName);
|
||||
|
||||
_page.Find(By.CssSelector("div[class*='CalendarPage']")).Should().NotBeNull();
|
||||
}
|
||||
|
||||
@@ -39,6 +47,9 @@ namespace NzbDrone.Automation.Test
|
||||
_page.ActivityNavIcon.Click();
|
||||
_page.WaitForNoSpinner();
|
||||
|
||||
var imageName = MethodBase.GetCurrentMethod().Name;
|
||||
TakeScreenshot(imageName);
|
||||
|
||||
_page.Find(By.LinkText("Queue")).Should().NotBeNull();
|
||||
_page.Find(By.LinkText("History")).Should().NotBeNull();
|
||||
_page.Find(By.LinkText("Blacklist")).Should().NotBeNull();
|
||||
@@ -60,6 +71,9 @@ namespace NzbDrone.Automation.Test
|
||||
_page.SystemNavIcon.Click();
|
||||
_page.WaitForNoSpinner();
|
||||
|
||||
var imageName = MethodBase.GetCurrentMethod().Name;
|
||||
TakeScreenshot(imageName);
|
||||
|
||||
_page.Find(By.CssSelector("div[class*='Health']")).Should().NotBeNull();
|
||||
}
|
||||
|
||||
@@ -68,11 +82,12 @@ namespace NzbDrone.Automation.Test
|
||||
{
|
||||
_page.LibraryNavIcon.Click();
|
||||
_page.WaitForNoSpinner();
|
||||
|
||||
_page.Find(By.LinkText("Add New")).Click();
|
||||
|
||||
_page.WaitForNoSpinner();
|
||||
|
||||
var imageName = MethodBase.GetCurrentMethod().Name;
|
||||
TakeScreenshot(imageName);
|
||||
|
||||
_page.Find(By.CssSelector("input[class*='AddNewItem-searchInput']")).Should().NotBeNull();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user