Skip to content

🚧 Fix view path priority in test environment#40

Closed
ShanaLMoore wants to merge 2 commits intomainfrom
fix-view-path-priority-in-tests
Closed

🚧 Fix view path priority in test environment#40
ShanaLMoore wants to merge 2 commits intomainfrom
fix-view-path-priority-in-tests

Conversation

@ShanaLMoore
Copy link
Contributor

@ShanaLMoore ShanaLMoore commented Oct 23, 2025

  • Add automatic view path configuration in rails_helper.rb
  • Ensure knapsack views are prioritized over hyrax-webapp views in tests
  • Add KnapsackViewPathHelper for manual view path control
  • Add test coverage for view path priority
  • Add documentation for the fix

This fixes an issue where view specs would render hyrax-webapp views instead of knapsack overlay views in the test environment.

- Add automatic view path configuration in rails_helper.rb
- Ensure knapsack views are prioritized over hyrax-webapp views in tests
- Add KnapsackViewPathHelper for manual view path control
- Add test coverage for view path priority
- Add documentation for the fix

This fixes an issue where view specs would render hyrax-webapp views
instead of knapsack overlay views in the test environment.

Resolves the issue reported where view specs were not using
the local knapsack overlay views.
- Ensures knapsack views are prioritized over hyrax-webapp views in tests
- Uses simplified approach targeting view.view_paths directly
- Fixes issue where view specs rendered hyrax-webapp views instead of knapsack overlays
- Automatic configuration - no manual intervention needed per test
- Maintains compatibility with existing theme view path handling

Resolves view path priority issues in test environment while preserving
production behavior and theme system functionality.
@ShanaLMoore ShanaLMoore changed the title Fix view path priority in test environment 🚧 Fix view path priority in test environment Oct 23, 2025
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.

1 participant