Repository navigation
Repair wp/7.1 branch Actions: Fix flaky Openverse image drag-and-drop e2e test - #84037
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
🤖 PR meta 🤖📦 Bundle sizeSize Change: 0 B Total Size: 7.75 MB
|
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. 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. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
|
77f3bd4 to
fbc6667
Compare
fbc6667 to
a44033a
Compare
a44033a to
05af062
Compare
05af062 to
08eee2b
Compare
08eee2b to
596795e
Compare
596795e to
828f242
Compare
828f242 to
1719a4d
Compare
Part of #82781.
What?
Mocks Openverse in
test/e2e/specs/editor/blocks/image.spec.js's "can be replaced by dragging-and-dropping images from the inserter" test.page.route()answers the search request toapi.openverse.orgwith two results on a fakeopenverse.testhost, and serves those two images fromtest/e2e/assets.Why?
The test dragged real Openverse search results onto an image block. When a result is dropped, the editor downloads the full-size image with
fetch()and uploads it to the media library. The first result is currently a NASA image hosted onlive.staticflickr.com, and on GitHub-hosted runners that download can fail withnet::ERR_FAILED(the same URL loads outside CI). Nothing is uploaded, and the image block stays empty.On this branch it failed
Playwright - 1on #83810, #83819 and #83831 on 2026-09-30, on every retry. The same failure broke the test ontrunk, which #83842 fixed. Mocking the search and the images removes the test's dependency on both services.How?
Ports #83842 from
trunk. The test code is identical.Use of AI Tools
This PR was created by Claude Code under my supervision. All code should be treated as AI-produced and not yet reviewed by a human until this PR is marked Ready for Review.
🤖 Generated with Claude Code