mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 21:33:15 -07:00
feat: ✨ Recently Requested on Discover Page (#4387)
This commit is contained in:
parent
26ac75f0c2
commit
44d38fbaae
46 changed files with 3785 additions and 3567 deletions
|
@ -26,8 +26,35 @@ class CarouselComponent {
|
|||
}
|
||||
}
|
||||
|
||||
class RecentlyRequestedComponent {
|
||||
getRequest(id: string): DetailedCard {
|
||||
return new DetailedCard(id);
|
||||
}
|
||||
}
|
||||
|
||||
class DetailedCard {
|
||||
private id: string;
|
||||
|
||||
get title(): Cypress.Chainable<any> {
|
||||
return cy.get(`#detailed-request-title-${this.id}`);
|
||||
}
|
||||
|
||||
get status(): Cypress.Chainable<any> {
|
||||
return cy.get(`#detailed-request-status-${this.id}`);
|
||||
}
|
||||
|
||||
verifyTitle(expected: string): Cypress.Chainable<any> {
|
||||
return this.title.should('have.text',expected);
|
||||
}
|
||||
|
||||
constructor(id: string) {
|
||||
this.id = id;
|
||||
}
|
||||
}
|
||||
|
||||
class DiscoverPage extends BasePage {
|
||||
popularCarousel = new CarouselComponent("popular");
|
||||
recentlyRequested = new RecentlyRequestedComponent();
|
||||
adminOptionsDialog = new AdminRequestDialog();
|
||||
|
||||
constructor() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue