Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit Tests Updates #336

Merged
merged 8 commits into from
Jan 16, 2024
Merged

Conversation

iisa
Copy link
Contributor

@iisa iisa commented Jan 3, 2024

  • Fix Test <sort-filter-bar>: Resize Observer breaks when toggling between default view & custom slotted view
  • Mute Tests <collection-browser>:
    • removeCheckedItems are not working as expected from unit test level
    • placeholderType not setting properly
    • skipped a couple of tests because elemental order has broken some

Copy link

github-actions bot commented Jan 3, 2024

PR Preview Action v1.4.6
Preview removed because the pull request was closed.
2024-01-16 23:32 UTC

@latonv latonv force-pushed the webdev6081-state-management branch from c657f97 to eb0d881 Compare January 11, 2024 19:34
@latonv latonv force-pushed the resize-observer-loan-tab-fix branch from f0b9733 to e46fed6 Compare January 15, 2024 21:25
@latonv latonv merged commit d04a82e into webdev6081-state-management Jan 16, 2024
1 check passed
@latonv latonv deleted the resize-observer-loan-tab-fix branch January 16, 2024 23:31
latonv added a commit that referenced this pull request Jan 25, 2024
* Use hits/aggregations from page_elements branch if available

* Rely on search service to handle page_element unpacking

* Sort Bar Test - Ensure Resize Observer fires ONLY when needed
- this breaks View when dynamically toggling sort bar on an already loaded collection browser

* TESTS - Fix some, comment some out that need rework with the refactor - WEBDEV-6801

* Unskip a few tests that were fixed in the refactor branch

* Uncomment a few more tests that have been fixed

* Further test fixes

* Fix last two remaining unit test failures

---------

Co-authored-by: Laton Vermette <[email protected]>
latonv added a commit that referenced this pull request Jan 26, 2024
* Use hits/aggregations from page_elements branch if available

* Rely on search service to handle page_element unpacking

* Sort Bar Test - Ensure Resize Observer fires ONLY when needed
- this breaks View when dynamically toggling sort bar on an already loaded collection browser

* TESTS - Fix some, comment some out that need rework with the refactor - WEBDEV-6801

* Unskip a few tests that were fixed in the refactor branch

* Uncomment a few more tests that have been fixed

* Further test fixes

* Fix last two remaining unit test failures

---------

Co-authored-by: Laton Vermette <[email protected]>
latonv added a commit that referenced this pull request Jan 26, 2024
…UI (#330)

* Create basic state management setup

* Facet state refactoring to minimize repetition

* Move facet refactor to different branch

* First pass extracting CB data source into a reactive controller

* Better abstraction for data source

* Setup for reactive controller lifecycle

* Top-level exports for data source

* Remove obsolete state management stub

* Build out some more robust interfaces for state management

* Facet state adjustments

* Facet state adjustments

* Migrate tile mapping function into new data source

* Add methods for tile mapping & check/unchecking to interface

* Migrate tile mapping/checking methods into data source

* Keep track of data source size

* Adjust some cb methods to delegate to data source

* Include data source size in interface

* Minor adjustments to how cb retrieves cell models

* Reorganize some properties

* Request host updates from reactive controller

* Fix some tests

* Add script for quicker test running

* Streamline models

* Conform collection browser to search state model

* Convert derived sortParam property into getter

* Fix some breaking tests related to sortParam

* Fix a model property naming issue

* Connect up data source w/ cb query change handlers

* Model updates for cb host

* Migrate several fetch methods over to data source

* Fix some convenience methods in cb

* Try migrating some page fetching routines

* Adjust search state model to accommodate page fetch

* Migrate page fetching & related props into data source

* Clean up cb a bit and delegate all remaining page fetches

* Excise collection-name-cache in favor of data source map

* Use basic map for collection titles

(no need for specialized get behavior since everywhere
it is used has a null-guard anyway)

* Data source should not fetch facets when suppressed

* Remove filterMap from search state interface (it's part of the datasource)

* Cleanup to avoid passing data source around

* Cleaning up some lingering details in cb

* Migrate prefix filters over to data source

* Improve data source documentation + general cleanliness

* Remove a bit of dead code in cb

* Fetch controller

* Cleaner data types for page target params

* Export TileModel interface

* Use updated search service models

* Ensure that profile pages are allowed to perform no-query searches

* Add profile target to query keys

* Ensure query change updates occur on profile target changes

* Use hits/aggregations from page_elements branch if available

* Rely on search service to handle page_element unpacking

* Emit event for any query state changes

* Add debug logging & fix result count bug

* Fix broken test

* Properly reset endOfDataReached upon query change

* Fix a bug where checking tile in manage view doesn't work

* Ensure result views are refreshed when checking/unchecking all in manage mode

* Fix several unit tests

* Fix bug where scroller tile count not being set correctly on short result sets

* Unit Tests Updates (#336)

* Use hits/aggregations from page_elements branch if available

* Rely on search service to handle page_element unpacking

* Sort Bar Test - Ensure Resize Observer fires ONLY when needed
- this breaks View when dynamically toggling sort bar on an already loaded collection browser

* TESTS - Fix some, comment some out that need rework with the refactor - WEBDEV-6801

* Unskip a few tests that were fixed in the refactor branch

* Uncomment a few more tests that have been fixed

* Further test fixes

* Fix last two remaining unit test failures

---------

Co-authored-by: Laton Vermette <[email protected]>

* Pull some helper functions out into utils

* Promote TileModel from a bare interface to a class, to better organize conversion from search results

* Move reset method up for clarity

* Move RequestKind into models file

* Upgrade search service version & fix tests that use tile model

* Fixes some display issues related to updated model structure & adding web capture links

* Refactor data source installation & fix broken web archive images

* Ensure data source only modifies host when it is attached

* Unskip fixed tests

* Do not rely on current host state for fetch invalidation, since it may be attached to a different data source

* Apply loading states on host connect

* Fix boolean flip bug on facet fetch

* Apply correct default sorts for profile tabs

* Ensure facets & date picker maintain the correct state when data source installed

* Debug logging for page scroll issue

* Add some missing unit tests

* Additional unit tests & minor refactor for letter filter updates

* Additional test fixes

* Unit test for empty results case

* Fix issues with letter filter bar & extra fetches

* Clean up some debug logging

* Upgrade search-service dependency

* Upgrades search-service off alpha tag

* Remove unused local-cache dependency

* Small fix for web archive results beyond first page + tests

---------

Co-authored-by: Isa Herico Velasco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants