Skip to content

Enhance e2e (end-to-end) tests for search pageΒ #3988

@tdonohue

Description

@tdonohue

Describe the bug

Enhance the existing e2e tests in search.cy.ts to include testing of additional search page features (e.g. https://demo.dspace.org/search). These features may include:

  • Verify filters work as expected. Add tests for different types of filters (e.g. date, author, subject). Ensure the search box under each filter works properly.
  • Verify filters can be removed one-by-one after added
  • Verify "Reset filters" button works
  • Verify results per page & sort options work in the "Settings" section of sidebar.
  • Verify pagination works properly
  • Verify "Show more" under one result can be expanded / contracted.
  • Verify thumbnails display
  • Verify title and thumbnail can be clicked to go to the Item / Entity page
  • On grid layout, verify "Show More" expands the card
  • On grid layout, verify "View" button brings you to the Item / Entity page

Expected behavior

The Search page actions should be more fully tested

Related work

Subticket of #3978

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughelp wantedNeeds a volunteer to claim to move forwardtesting frameworkRelated specifically to Unit or Integration (e2e) Tests

    Type

    Projects

    Status

    πŸ“‹ To Do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions