Skip to content

Motion e2e tests#131

Open
marine-bre wants to merge 16 commits intomasterfrom
motion-e2e
Open

Motion e2e tests#131
marine-bre wants to merge 16 commits intomasterfrom
motion-e2e

Conversation

@marine-bre
Copy link
Contributor

Description

Related Issue

Checklist

  • I have read the Contributing Guide
  • I have added/updated tests for my changes (if applicable)
  • I have updated documentation/rules/skills (if applicable)

Screenshots / Demos

Additional Notes

@marine-bre marine-bre marked this pull request as ready for review February 25, 2026 09:53
@marine-bre marine-bre changed the title initial commit Motion e2e tests Feb 25, 2026
Copy link
Collaborator

@ydaniv ydaniv left a comment

Choose a reason for hiding this comment

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

So far reviewed animation-group, effects, and pointer-animations.
Let's fix those and continue

"@babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.28.6":
version: 7.28.6
resolution: "@babel/code-frame@npm:7.28.6"
"@babel/code-frame@npm:^7.10.4, @babel/code-frame@npm:^7.28.6, @babel/code-frame@npm:^7.29.0":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks like we have misaligned versions in the different package.json files.
I can see one is @vitejs/plugin-react.
Please see if you can dedupe those.

expect(events).toContain('pause');
});

test('should reverse animation direction', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test should also check playbackRate is -1 after reversing

) as HTMLElement;

// X-axis animation: translateX driven by horizontal mouse position
const xAxisGroup = getWebAnimation(xAxisTarget, {
Copy link
Collaborator

Choose a reason for hiding this comment

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

All of the pointer fixtures use getWebAnimation(), none actually use getScrubScene() which is what we actually use for all pointer-move animations.
So none actually check the correct code path for pointer animations.
Let's correct that, so it's actually passing the correct trigger data, with different axes, using all the type of effects, etc.

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.

2 participants