mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-06 05:01:13 -07:00
Fixed unit tests
This commit is contained in:
parent
5678f43f41
commit
b9f5c06b7c
4 changed files with 18 additions and 6 deletions
|
@ -29,7 +29,8 @@ namespace Ombi.Core.Rule.Rules.Search
|
|||
{
|
||||
search.PartlyAvailable = true;
|
||||
}
|
||||
else
|
||||
|
||||
if (!search.FullyAvailable)
|
||||
{
|
||||
var airedButNotAvailable = search.SeasonRequests.Any(x =>
|
||||
x.Episodes.Any(c => !c.Available && c.AirDate <= DateTime.Now.Date && c.AirDate != DateTime.MinValue));
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { BasePage } from "../../base.page";
|
||||
import { AdminRequestDialog } from "../../shared/AdminRequestDialog";
|
||||
|
||||
class TvRequestPanel {
|
||||
|
||||
|
@ -82,6 +83,7 @@ class TvDetailsPage extends BasePage {
|
|||
informationPanel = new TvDetailsInformationPanel();
|
||||
requestFabButton = new RequestFabButton();
|
||||
requestPanel = new TvRequestPanel();
|
||||
adminOptionsDialog = new AdminRequestDialog();
|
||||
|
||||
constructor() {
|
||||
super();
|
||||
|
|
|
@ -84,13 +84,13 @@ describe("Movie Details Buttons", () => {
|
|||
it("Movie Requested, mark as available", () => {
|
||||
cy.login();
|
||||
|
||||
Page.visit("399566");
|
||||
Page.visit("12444");
|
||||
|
||||
Page.requestButton.click();
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
cy.verifyNotification(
|
||||
"Godzilla vs. Kong (2021) has been successfully added"
|
||||
"Harry Potter and the Deathly Hallows: Part 1 (2010) has been successfully added"
|
||||
);
|
||||
|
||||
cy.reload();
|
||||
|
|
|
@ -137,6 +137,9 @@ describe("TV Requests Grid", function () {
|
|||
Page.requestFabButton.fab.click();
|
||||
Page.requestFabButton.requestSelected.click();
|
||||
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
|
||||
cy.verifyNotification('Request for Game of Thrones has been added successfully');
|
||||
|
||||
Page.requestPanel.getEpisodeStatus(2,1)
|
||||
|
@ -157,6 +160,9 @@ describe("TV Requests Grid", function () {
|
|||
Page.requestFabButton.fab.click();
|
||||
Page.requestFabButton.requestFirst.click();
|
||||
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
|
||||
cy.verifyNotification('Request for Game of Thrones has been added successfully');
|
||||
|
||||
Page.requestPanel.getEpisodeStatus(1)
|
||||
|
@ -164,12 +170,15 @@ describe("TV Requests Grid", function () {
|
|||
.should('have.class', 'requested')
|
||||
});
|
||||
|
||||
it("Request Latest Season", () => {
|
||||
it.only("Request Latest Season", () => {
|
||||
Page.visit('1399');
|
||||
|
||||
Page.requestFabButton.fab.click();
|
||||
Page.requestFabButton.requestLatest.click();
|
||||
|
||||
Page.adminOptionsDialog.isOpen();
|
||||
Page.adminOptionsDialog.requestButton.click();
|
||||
|
||||
cy.verifyNotification('Request for Game of Thrones has been added successfully');
|
||||
|
||||
Page.requestPanel.seasonTab(8)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue