Fix: flaky list view paste block styles e2e test - #81229
Merged
Merged
Conversation
|
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. |
|
Size Change: 0 B Total Size: 7.65 MB |
jorgefilipecosta
force-pushed
the
fix/flaky-list-view-paste-styles-e2e
branch
from
August 5, 2026 20:43
fd35bbb to
411449a
Compare
jorgefilipecosta
force-pushed
the
fix/flaky-list-view-paste-styles-e2e
branch
from
August 10, 2026 14:10
411449a to
7adc622
Compare
jorgefilipecosta
enabled auto-merge (squash)
August 10, 2026 19:00
jorgefilipecosta
disabled auto-merge
August 10, 2026 19:00
shail-mehta
pushed a commit
that referenced
this pull request
Aug 12, 2026
Co-authored-by: jorgefilipecosta <jorgefilipecosta@git.wordpress.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #78759
Fixes the flaky "should paste block styles using keyboard" e2e test in
list-view.spec.js.The test clicks "Copy styles" on the second block and immediately opens the list view and pastes onto the first block with
primaryAlt+v. Copying styles writes to the clipboard through the asynchronousnavigator.clipboard.writeText(), and the click resolves before that write settles. On a busy CI runner the paste can then read the clipboard before the styles are in it: the paste aborts with the "Unable to paste styles" warning, the first block never changes, and theexpect.polltimes out with exactly the diff recorded in the issue (first block missing the pasted style, second block untouched).To fix this we wait for the "Styles copied to clipboard." snackbar before opening the list view. The confirmation is only created once the clipboard write has settled, so the paste can no longer read a stale clipboard.
Testing Instructions
npm run test:e2e -- test/e2e/specs/editor/various/list-view.spec.js --grep "paste block styles" --repeat-each=10and verify it passes.AI usage disclosure: fix and description drafted with AI assistance and reviewed by me.