Skip to content

Commit

Permalink
Removing block editor settings test for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Aug 15, 2024
1 parent e811d6c commit 0053e22
Showing 1 changed file with 0 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,29 +96,4 @@ test.describe( 'iframed block editor settings styles', () => {
// Expect a 2px border because theme styles are enabled.
await expect( defaultBlock ).toHaveCSS( 'border-width', '2px' );
} );

test( 'should set iframe html attributes based on locale through block editor settings', async ( {
editor,
page,
} ) => {
const htmlElement = editor.canvas.locator( 'css=html' );
await expect( htmlElement ).toHaveAttribute( 'lang', 'en_US' );
await expect( htmlElement ).toHaveAttribute( 'dir', 'ltr' );

await page.evaluate( () => {
const settings = window.wp.data
.select( 'core/editor' )
.getEditorSettings();
window.wp.data.dispatch( 'core/editor' ).updateEditorSettings( {
...settings,
siteLocale: {
lang: 'ar',
isRTL: true,
},
} );
} );

await expect( htmlElement ).toHaveAttribute( 'lang', 'ar' );
await expect( htmlElement ).toHaveAttribute( 'dir', 'rtl' );
} );
} );

0 comments on commit 0053e22

Please sign in to comment.