Search Results View Testing Scenarios - tsgrp/HPI GitHub Wiki

Overview

Search Results View is a core HPI module that is used in Search, View All Documents, and Collections. Below is a check list of testing scenarios a developer should go through if touching any of these files:

  • tableview.js
  • searchresults.js
  • searchresultscontrols.js
  • viewalldocuments.js
  • facetsearch.js
  • thumbnailview.js
  • OCQuery.js
  • ANY Slick Grid files

NOTE: Copy the scenarios into a separate document and check them off as you go. This prevents overlooking any tests

NOTE: TEST IN IE

List of Scenarios

Collections

  • Sorting
  • Filtering based on text
  • Clearing the text filter
  • Right clicking pops up a context menu
  • Results Per Page
  • Pagination
    • Make sure to test all cases with multiple pages
    • Next?
    • Prev?
    • Go to page?
    • Make sure to test all pagination controls with at least 3 pages
  • Does check all and uncheck all work
  • Does the SearchControlResults properly display the number of results available
    • With text filtering?
  • Can you alter what is shown in the table correctly? (Choosing columns to display, force fit, Reorder the columns, etc)
  • Does resizing the window properly adjust the table
  • Can you select all or multiple rows and the indicator updates to the number of docs selected?

Search (Thumbnail view and Tableview)

  • Does Sorting work?
    • If in a timezone other than what is configured in HPI, does sorting rerender dates/times to the correct values?
  • Does sorting persist when switching from thumbnail view to table view?
  • Does Right clicking cause a context menu to pop up?
    • Does it correctly bring up group actions vs single doc actions
  • Does the actions drop down disappear when no docs are selected?
    • Show single doc actions when one doc is selected?
    • Show group actions when multiple docs are selected?
  • Does Results Per Page work?
    • Does it persist when switching between thumbnail view and tableview?
    • Does it save the results per page and reapply when another search is performed?
  • Does pagination work correctly?
    • Make sure to test all cases with multiple pages
    • Does it persist between thumbnail view and tableview?
    • Next?
    • Prev?
    • Go to page?
    • Make sure to test all pagination controls with at least 3 pages
    • Does page number persist when switching between tableview and thumbnail view?
  • Does check all and uncheck all work?
  • Does the SearchControlResults properly display the number of results available?
    • With text filtering?
    • With facet filtering?
    • With predefined views?
    • With any combo of the above scenarios?
  • Do filters persist between tableview and thumbnail view?
    • Text filtering?
    • Facet filtering?
    • Predefined Views?
  • Can you alter what is shown in the table correctly? (Choosing columns to display, force fit, Reorder the columns, etc)
  • Does resizing the window properly adjust the table?
  • Can you select all or multiple rows and the indicator updates to the number of docs selected?
  • Do selected documents remain selected when switching between tableview and thumbnail view?
  • When resetting table view do the following go back to their defaults?
    • Filtering?
    • Results Per Page?
    • Pagination?
    • Visible columns and their orders?

Standard Table View in Search

  • When going from tableview or thumbnail view, does the Standardize table set the results per page to the defaulted config option?
    • When going back to tableview or thumbnail view, does the results per page update to what was there before going into standardized table?
  • Nothing should persist from the other views
    • Sorting
    • Filtering
    • Results per page
    • Facets
    • Columns
    • Pagination
    • Selected documents
  • Does Right clicking pop up a context menu?
    • Does it correctly bring up group actions vs single doc actions?
  • Does the actions drop down disappear when no docs are selected?
    • Show single doc actions when one doc is selected?
    • Show group actions when multiple docs are selected?
  • Does check all and uncheck all work?
  • When returning to tableview or thumbnail view from standardized table, no predefined views should be reapplied.
  • You should not be able to see the following
    • Facets
    • Predefined Views
    • Text Filter
    • Results Per page

Standard Table View in VAD

  • When going from tableview or thumbnail view, does the Standardize table set the results per page to the defaulted config option?
    • When going back to tableview or thumbnail view, does the results per page update to what was there before going into standardized table?
  • Nothing should persist from the other views
    • Sorting
    • Filtering
    • Results per page
    • Facets
    • Columns
    • Pagination
    • Selected documents
  • Does Right clicking pop up a context menu?
    • Does it correctly bring up group actions vs single doc actions?
  • Does the actions drop down disappear when no docs are selected?
    • Show single doc actions when one doc is selected?
    • Show group actions when multiple docs are selected?
  • Does check all and uncheck all work?
  • When returning to tableview or thumbnail view from std view, predefined view from userPreferences SHOULD be reapplied.
  • You should not be able to see the following
    • Facets
    • Predefined Views
    • Text Filter
    • Results Per page

View All Documents

  • Does sorting work?
    • If in a timezone other than what is configured in HPI, does sorting rerender dates/times to the correct values?
  • Does sorting persist when switching from thumbnail view to table view?
  • Does right clicking cause a context menu to pop up?
    • Does it correctly bring up group actions vs single doc actions?
  • Does the actions drop down disappear when no docs are selected?
    • Show single doc actions when one doc is selected?
    • Show group actions when multiple docs are selected?
  • Does Results Per Page work?
    • Does it persist when switching between thumbnail view and tableview?
    • Does it save the results per page and reapply when re-entering VAD?
  • Does pagination work correctly?
    • Make sure to test all cases with multiple pages
    • Does it persist between thumbnail view and tableview?
    • Next?
    • Prev?
    • Go to page?
    • Make sure to test all pagination controls with at least 3 pages
    • Does page number persist when switching between tableview and thumbnail view?
  • Does check all and uncheck all work?
  • Does the SearchControlResults properly display the number of results available?
    • With text filtering?
    • With facet filtering?
    • With predefined views?
    • With any combo of the above scenarios?
  • Do filters persist between tableview and thumbnail view?
    • Text filtering
    • Facet filtering
    • Predefined Views
  • Can you alter what is shown in the table correctly? (Choosing columns to display, force fit, Reorder the columns, etc)
    • Making the window small with force fit on and then turning it off and making the window big again causes weird pagination issues
  • Does resizing the window properly adjust the table?
  • Can you select all or multiple rows and the indicator updates to the number of docs selected?
  • Do selected documents remain selected when switching between tableview and thumbnail view?
  • When resetting table view do the following go back to their defaults?
    • Filtering
    • Results Per Page
    • Pagination
    • Visible columns and their orders

Advanced Combine To PDF

  • Does pagination work correctly?
    • Make sure to test all cases with multiple pages
    • Next?
    • Prev?
    • Go to page?
    • Make sure to test all pagination controls with at least 3 pages
  • Results Per Page
  • Do the following columns appear if configured and do they work properly?
    • Adjusting the Ordering (This includes altering the order based on the input box and drag/dropping rows)
    • Selecting and Deselecting a document for the ACTPDF
    • Page Selection (Run oa and test that it properly will exclude certain documents)
    • Bookmark column
  • Is the following disabled or not there?
    • checkbox column
    • filtering based on text, facets, or predefined views
    • Only tableview is available (No thumbnail view, Reset tableview, or Standard tableview)
    • check all and uncheck all options
    • Right clicking
    • sorting by clicking a column
    • Column order and size does not get saved to userPreferences
    • Row selection (AKA clicking on the row, wont highlight it)
    • The actions drop down.
    • The Column Picker
  • Does resizing the window properly adjust the table?
  • Does the SearchControlResults properly display the number of results available?

Database Tableview

May not be able to test.

  • The select all / select none search result control is not visible.
  • Clicking on the rows does not highlight them. Rows cannot be selected.
  • Does sorting work?
    • Make sure the view is configured to allow sorting, make sure to try to sort all columns.
  • When right-clicking a context menu should not appear.
    • Does it correctly bring up group actions vs single doc actions?
  • The action search result control is never visible?
  • Filtering facets do not appear?
  • Prevented from switching to thumbnail view (the to switch button does not appear)?
  • Does pagination work correctly?
    • Make sure to test all cases with multiple pages
    • Next?
    • Prev?
    • Go to page?
    • Make sure to test all pagination controls with at least 3 pages
  • Does check all and uncheck all work?
  • Does the SearchControlResults properly display the number of results available?
    • With text filtering?
  • Altering what is shown
    • prevented from reordering the columns?
    • prevented from right clicking to adjust what columns are visible?
    • prevented from toggling forcefit and async resize?
  • Does resizing the window properly adjust the table?

Actions

Do the following actions work as expected in Collections, Search, and View All Documents?

  • Delete Document
    • When deleting a document, does the view update to to remove that document?
    • Does the search results message update to the correct number of documents
  • Soft Delete
  • Bulk Properties
  • Download As Zip
  • Export Folder
  • Export Forms

Slick.Grid

Confirm that the following functionality still exists.

  • ACTPDF:
    • Ordering (both drag and input)
    • If editing is enabled, confirm the input maintains through the final product.
    • Also, confirm that the editable box can be left and immediately clicked back into.
    • All types of selection, allow you to enter editable boxes.
  • View All Documents:
    • Coming Soon
  • Stage:
    • Coming Soon
  • Search:
    • Coming Soon