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' ); // The URL is saved to the block only when the form is submitted. await pageUtils.pressKeys( 'Enter' ); await expect.poll( editor.getBlocks ).toMatchObject( [ { name: 'core/rss', attributes: { feedURL: 'https://developer.wordpress.org/news/feed/', }, }, ] ); } ); } );