Skip to content

Commit

Permalink
Fix list/pre test
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Oct 4, 2023
1 parent 98541e5 commit 92a26b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default function useClipboardHandler() {
const isInternal =
event.clipboardData.getData( 'rich-text' ) === 'true' ||
// All uses of __unstablePastePlainText use pre.
activeElement.closest( 'pre' );
!! activeElement.closest( 'pre' );
if ( isInternal ) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions test/e2e/specs/editor/various/copy-cut-paste.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ test.describe( 'Copy/cut/paste', () => {
} ) => {
pageUtils.setClipboardData( {
html: '<pre>x</pre>',
plainText: 'x',
} );
await editor.insertBlock( { name: 'core/list' } );
await pageUtils.pressKeys( 'primary+v' );
Expand Down

0 comments on commit 92a26b3

Please sign in to comment.