iOS: AssetTestHelper getAsset can't register assets through plugins arg
hborawski opened this issue · comments
Describe the bug
Plugins that guard
on the type of player being applied to, just like the ReferenceAssetsPlugin, don't work with getAsset in AssetTestHelper
because it always uses TestPlayer.
To Reproduce
Remove https://github.com/player-ui/player/blob/main/ios/packages/reference-assets/ViewInspector/SwiftUI/ActionAssetTests.swift#L19-L22 and pass the ReferenceAssetsPlugin
to https://github.com/player-ui/player/blob/main/ios/packages/reference-assets/ViewInspector/SwiftUI/ActionAssetTests.swift#L43
Expected behavior
Test passes
Screenshots
Environment:
- OS: iOS
- Version: Any
Additional context