-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Writing flow: fix paste for input fields (#61389)
Co-authored-by: ellatrix <ellatrix@git.wordpress.org> Co-authored-by: Mamaduka <mamaduka@git.wordpress.org> Co-authored-by: kevin940726 <kevin940726@git.wordpress.org> Co-authored-by: allilevine <firewatch@git.wordpress.org> Co-authored-by: afercia <afercia@git.wordpress.org> Co-authored-by: liviopv <liviopv@git.wordpress.org> Co-authored-by: t-hamano <wildworks@git.wordpress.org>
- Loading branch information
1 parent
6833b22
commit 1e75c48
Showing
3 changed files
with
66 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
const { test, expect } = require( '@wordpress/e2e-test-utils-playwright' ); | ||
|
||
test.describe( 'RSS', () => { | ||
test.beforeEach( async ( { admin } ) => { | ||
await admin.createNewPost(); | ||
} ); | ||
|
||
// See: https://github.com/WordPress/gutenberg/pull/61389. | ||
test( 'should retain native copy/paste behavior for input fields', async ( { | ||
editor, | ||
pageUtils, | ||
} ) => { | ||
await editor.insertBlock( { name: 'core/rss' } ); | ||
pageUtils.setClipboardData( { | ||
plainText: 'https://developer.wordpress.org/news/feed/', | ||
} ); | ||
await pageUtils.pressKeys( 'primary+v' ); | ||
|
||
await expect.poll( editor.getBlocks ).toMatchObject( [ | ||
{ | ||
name: 'core/rss', | ||
attributes: { | ||
feedURL: 'https://developer.wordpress.org/news/feed/', | ||
}, | ||
}, | ||
] ); | ||
} ); | ||
} ); |
1e75c48
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.
Flaky tests detected in 1e75c48.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.
🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/9228105964
📝 Reported issues:
/test/e2e/specs/site-editor/site-editor-url-navigation.spec.js