Fixed the bugs that the automation tests found

pull/4112/head
tidusjar 4 years ago
parent 600c88dd20
commit 130efd8216

@ -96,9 +96,9 @@ export class MovieDetailsComponent {
rootFolderOverride: result.radarrFolderId, }).toPromise();
if (requestResult.result) {
this.movie.requested = true;
this.movie.requestId = result.requestId;
this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId);
this.movie.requestId = requestResult.requestId;
this.messageService.send(requestResult.message, "Ok");
this.movieRequest = await this.requestService.getMovieRequest(this.movie.requestId);
} else {
this.messageService.send(requestResult.errorMessage, "Ok");
}

@ -44,9 +44,13 @@ export class DiscoverCard {
}
get requestButton(): Cypress.Chainable<any> {
if (this.type) {
return cy.get(`#requestButton${this.id}${this.movie ? '1' : '0'}${this.type}`);
}
return cy.get(`#requestButton${this.id}${this.movie ? '1' : '0'}`);
}
verifyTitle(expected: string): Cypress.Chainable<any> {
return this.title.should('have.text',expected);
}

@ -79,7 +79,7 @@ describe("Search Tests", () => {
card.requestButton.should('exist');
});
it("No TV results, enabling movies filter we get results", () => {
it.only("No TV results, enabling movies filter we get results", () => {
Page.navbar.searchFilter.applyFilter(true, false, false);
Page.visit("half blood prince");

Loading…
Cancel
Save