Repository navigation
Conversation
|
Size Change: 0 B Total Size: 7.73 MB |
d1b2aa2 to
cfca7bd
Compare
|
Flaky tests detected in cfca7bd. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/32055498135 should allow user to add and remove multiple local font files in
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
cfca7bd to
d1946c4
Compare
d1946c4 to
81748e5
Compare
What?
Refactors Playlist and Playlist Track unit tests to use real block-editor components and stores instead of mocks.
Why?
The previous tests mocked too much of the editor environment, which made them unrepresentative of how the block actually behaves.
How?
The tests now use real components, and use a small
editor.MediaUploadfilter only to provide deterministic media selections.Testing Instructions
npm run test:unit packages/block-library/src/playlist/test/edit-component.js packages/block-library/src/playlist-track/test/edit.js -- --runInBand.npm run lint:js -- packages/block-library/src/playlist/test/edit-component.js packages/block-library/src/playlist-track/test/edit.js.Testing Instructions for Keyboard
Not applicable; this PR only changes test code.
Screenshots or screencast
Not applicable.
Use of AI Tools
AI assistance was used to inspect the existing tests, refactor them, and run validation; the resulting changes were reviewed before submission.