You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3700590
Browse filesBrowse the repository at this point in the historyBrowse files
[flutter_tools] Resolve symlinks and fix flakiness in widget preview tests (flutter#191214)
## Description
* Resolve symbolic links in `PreviewDetector`'s project root directory
and ephemeral directories to ensure consistent path matching.
* Pass the SDK path to `AnalysisContextCollection` to ensure correct SDK
resolution in worktrees.
* Add a 100ms delay in test helpers before triggering file changes to
allow the file watcher to fully initialize on macOS.
## Related Issues
Fixesflutter#189849
## Tests
- Updated widget preview unit and regression tests in
`packages/flutter_tools/test/commands.shard/hermetic/widget_preview/`
and
`packages/flutter_tools/test/commands.shard/permeable/widget_preview/`.
Copy file name to clipboardExpand all lines: packages/flutter_tools/test/commands.shard/hermetic/widget_preview/preview_detector/preview_detector_regression_173895_test.dart
Copy file name to clipboardExpand all lines: packages/flutter_tools/test/commands.shard/hermetic/widget_preview/preview_detector/preview_detector_regression_178317_test.dart
Copy file name to clipboardExpand all lines: packages/flutter_tools/test/commands.shard/permeable/widget_preview/preview_detector_regression_178472_test.dart
0 commit comments