Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test of animations on Android #6199

Closed
wants to merge 1 commit into from
Closed

Conversation

Latropos
Copy link
Contributor

@Latropos Latropos commented Jul 2, 2024

Summary

This PR contains changes necessary to make tests of animations pass on Android. I also make function getAnimatedStyle return correct type of a prop (previously it was always returning a string)

Test plan

Run tests of animations on Paper on both IOS and Android.

The only error is the following one on IOS:
image

image

@Latropos Latropos marked this pull request as ready for review July 2, 2024 13:41
@Latropos Latropos requested a review from piaskowyk July 2, 2024 13:42
@@ -158,8 +161,10 @@ describe('Add three delays', () => {
);

expect([{ width: 0 }, { width: 0 }, ...updatesOneDelay]).toMatchSnapshots(updates);
expect(updatesOneDelay).toMatchNativeSnapshots(nativeUpdatesOneDelay);
expect(updates).toMatchNativeSnapshots(nativeUpdates);
if (componentType !== 'INLINE' || Platform.OS !== 'android') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are quite a few workarounds in this PR. I understand that they fix some issues, but let me take some time to consider a potential solution to fix the root cause of the problem.

@Latropos Latropos marked this pull request as draft July 11, 2024 11:40
@Latropos Latropos closed this Jul 29, 2024
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.

None yet

2 participants