Skip to content

chore(tests): add regression tests for UiController#5481

Merged
SteKoe merged 3 commits into
codecentric:masterfrom
amirdeljouyi:test-add-regression-tests-for-uicontroller
Jul 1, 2026
Merged

chore(tests): add regression tests for UiController#5481
SteKoe merged 3 commits into
codecentric:masterfrom
amirdeljouyi:test-add-regression-tests-for-uicontroller

Conversation

@amirdeljouyi

Copy link
Copy Markdown
Contributor

Hey 👋

I added two regression tests for UiController around UI model rendering.

Impact on coverage:

  • Covers UiController model and view rendering logic, including covered lines for public URL handling and covered lines for user and view model rendering.
  • This adds about 20% line coverage for UiController.

Why:

While looking through the UiController implementation, I noticed this behavior wasn't directly verified by the existing test suite. These tests verify the UI model produced for anonymous login requests and authenticated stylesheet requests, including public URL handling, UI settings, user details, and filtering of CSS and JavaScript extensions.

The change follows the existing Java test style and does not touch client-side files.

Thanks,
Amir

@amirdeljouyi amirdeljouyi requested a review from a team as a code owner June 24, 2026 11:25
@SteKoe SteKoe force-pushed the test-add-regression-tests-for-uicontroller branch from 905af6a to ca7072b Compare July 1, 2026 10:08
@SteKoe SteKoe changed the title Test add regression tests for uicontroller chore(tests): add regression tests for UiController Jul 1, 2026
@SteKoe SteKoe enabled auto-merge (squash) July 1, 2026 10:09
@SteKoe SteKoe force-pushed the test-add-regression-tests-for-uicontroller branch from ca7072b to 3aff731 Compare July 1, 2026 10:27
@SteKoe SteKoe force-pushed the test-add-regression-tests-for-uicontroller branch from 3aff731 to 89973c4 Compare July 1, 2026 10:46
@SteKoe SteKoe merged commit c9e4d54 into codecentric:master Jul 1, 2026
1 check passed
ulischulte pushed a commit that referenced this pull request Jul 3, 2026
Co-authored-by: Stephan Köninger <stephan.koeninger@codecentric.de>
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.

2 participants