-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Cover: Fix integration tests for ResizableBox via BlockPopover #49497
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, this gets the Cover block tests passing locally 👍
If we run into any issues or conflicts with other tests, we could always move this to the cover block tests directly, and / or set it within a beforeAll
and reset it in an afterAll
.
Since this checks that it doesn't exist before mocking it, this LGTM! ✨
Size Change: 0 B Total Size: 1.34 MB ℹ️ View Unchanged
|
Flaky tests detected in 13aadc2. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4571678342
|
What?
Fixes broken Cover block tests after moving ResizableBox to BlockPopover.
Why?
Tests are failing on trunk.
How?
Adds a global mock for
window.DOMRect
. kudos to @glendaviesnz for this fix.Testing Instructions
npm run test:unit packages/block-library/src/cover/test/edit.js