Skip to content

fix(motion): fix CSS runtime e2e fixture after target removal - #370

Merged
ameerf-wix merged 1 commit into
masterfrom
fix/motion-e2e-css-target
Oct 26, 2026
Merged

ameerf-wix merged 1 commit into
masterfrom
fix/motion-e2e-css-target

Conversation

@ameerf-wix

Copy link
Copy Markdown
Contributor

Summary

Motion E2E has been failing since #364 (run): getCSSAnimation() now returns part in place of target, so the effects fixture's getCssTargetElement(firstAnimation.target) threw target is undefined in both CSS Runtime Consumption tests on every browser.

The fixture adapter now takes the element id it already passed to getCSSAnimation() and builds the selector from that id plus the optional part.

Test plan

  • yarn test:e2e e2e/tests/effects.spec.ts: 57/57 passing (chromium, firefox, webkit)

🤖 Generated with Claude Code

getCSSAnimation() no longer returns `target` (replaced by `part` in #364),
so the fixture adapter crashed on `target.startsWith`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@ameerf-wix
ameerf-wix merged commit 329abc6 into master Oct 26, 2026
1 check passed
@ameerf-wix
ameerf-wix deleted the fix/motion-e2e-css-target branch October 26, 2026 18:15
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.

1 participant