Skip to content

Add integration tests for Arbre rendering compatibility - #761

Open
javierjulio wants to merge 4 commits into
masterfrom
test-cases-integration
Open

javierjulio wants to merge 4 commits into
masterfrom
test-cases-integration

Conversation

@javierjulio

Copy link
Copy Markdown
Member

This adds 23 integration tests that capture how Arbre 2.2.1 renders HTML. They give us a baseline for reviewing the renderer changes in #756 and future performance improvements.

  • 18 examples cover nested elements, repeated renders, custom components, document types, and HTML escaping.
  • 5 Rails request examples exercise patterns from ActiveAdmin and a public Rails app using ActiveAdmin, including tables built one column at a time, mixed Arbre and ERB partials, and forms rendered from both template types.

@javierjulio javierjulio self-assigned this Dec 3, 2026
@codecov

codecov Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7ba87c0) to head (21cf07e).

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #761   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines          459       459           
=========================================
  Hits           459       459           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Check nested output, component overrides, document types, and escaping against the released renderer so changes in how trees are written cannot silently alter their HTML.
Render delivery pages patterned on ActiveAdmin and CSA Admin to catch misplaced, duplicated, or incorrectly escaped content across layouts, partials, and nested form fields.
ActiveAdmin form components use to_s to wrap their rendered children. Verify that the wrapper survives and the submit button appears exactly once.
ActiveAdmin helpers return Arbre context content to ERB. Check that Rails preserves the form markup, renders each control once, and escapes the field value exactly once.

This branch has not been deployed

No deployments
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