feat: Recently Requested on Discover Page (#4387)

This commit is contained in:
Jamie 2022-08-09 16:33:55 +01:00 committed by GitHub
commit 44d38fbaae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
46 changed files with 3785 additions and 3567 deletions

View file

@ -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() {