test: add comprehensive tests for accordion and divider components - #26
Closed
leoafarias wants to merge 2 commits into
Closed
test: add comprehensive tests for accordion and divider components#26leoafarias wants to merge 2 commits into
leoafarias wants to merge 2 commits into
Conversation
Add comprehensive test coverage for accordion and divider components which were previously missing tests: - accordion_widget_test.dart: Widget rendering, expansion behavior, disabled states, custom builders, focus/keyboard, accessibility, and WidgetState controller integration - accordion_spec_test.dart: Constructor, copyWith, lerp, equality, props, and diagnostic support - accordion_style_test.dart: Constructors, style methods, resolve, merge, equality, and props - divider_widget_test.dart: Basic rendering, layout, style application, and integration with other components - divider_spec_test.dart: Constructor, copyWith, lerp, equality, props, and diagnostic support - divider_style_test.dart: Constructors, style methods (color, thickness, padding, margin, etc.), resolve, merge, equality, and props
- Remove accordion pressed state test that doesn't work with nested widget structure (press behavior tested via expansion tests) - Fix divider animate test to use AnimationConfig.linear() factory instead of abstract AnimationConfig constructor
|
To view this pull requests documentation preview, visit the following URL: Documentation is deployed and generated using docs.page. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds comprehensive test coverage for the Accordion and Divider components, including spec tests, style tests, and widget tests. All tests validate constructor behavior, property copying, lerp interpolation, equality, and integration with the Remix design system.
Related Issues
Adds test coverage for Accordion and Divider components to ensure reliability and prevent regressions.
Checklist
///).Breaking Change