mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Block Editor: Update the WordPress Packages based on Gutenberg 11.9 RC1.
This brings the JS packages up to date and is the first step that will allow us to include the other block editor updates for WordPress 5.9: FSE infrastrucutre, site editor and global styles. Props noisysocks. See #54337. git-svn-id: https://develop.svn.wordpress.org/trunk@52042 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Vendored
+3
@@ -129,6 +129,9 @@ beforeAll( async () => {
|
||||
capturePageEventsForTearDown();
|
||||
enablePageDialogAccept();
|
||||
observeConsoleLogging();
|
||||
await page.emulateMediaFeatures( [
|
||||
{ name: 'prefers-reduced-motion', value: 'reduce' },
|
||||
] );
|
||||
await setBrowserViewport( 'large' );
|
||||
} );
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ describe( 'Edit Posts', () => {
|
||||
|
||||
// Expect to now be in the editor with the correct post title shown.
|
||||
const editorPostTitleInput = await page.$x(
|
||||
`//textarea[contains(@class, "editor-post-title__input")][contains(text(), "${ title }")]`
|
||||
`//h1[contains(@class, "editor-post-title__input")][contains(text(), "${ title }")]`
|
||||
);
|
||||
expect( editorPostTitleInput.length ).toBe( 1 );
|
||||
} );
|
||||
|
||||
@@ -170,7 +170,7 @@ class Tests_Blocks_Editor extends WP_UnitTestCase {
|
||||
public function test_get_default_block_editor_settings() {
|
||||
$settings = get_default_block_editor_settings();
|
||||
|
||||
$this->assertCount( 16, $settings );
|
||||
$this->assertCount( 17, $settings );
|
||||
$this->assertFalse( $settings['alignWide'] );
|
||||
$this->assertIsArray( $settings['allowedMimeTypes'] );
|
||||
$this->assertTrue( $settings['allowedBlockTypes'] );
|
||||
@@ -493,19 +493,4 @@ class Tests_Blocks_Editor extends WP_UnitTestCase {
|
||||
$this->assertStringContainsString( '"\/wp\/v2\/blocks"', $after );
|
||||
$this->assertStringContainsString( '"\/wp\/v2\/types"', $after );
|
||||
}
|
||||
|
||||
/**
|
||||
* @ticket 53344
|
||||
*/
|
||||
public function test_get_block_editor_theme_styles() {
|
||||
$theme_styles = get_block_editor_theme_styles();
|
||||
$this->assertCount( 1, $theme_styles );
|
||||
$this->assertSameSets(
|
||||
array(
|
||||
'css' => 'body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif }',
|
||||
'__unstableType' => 'core',
|
||||
),
|
||||
$theme_styles[0]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user