+
{ children }
);
diff --git a/packages/e2e-test-utils/src/click-block-appender.js b/packages/e2e-test-utils/src/click-block-appender.js
index 8bade1f9bae33..15dd6e824f318 100644
--- a/packages/e2e-test-utils/src/click-block-appender.js
+++ b/packages/e2e-test-utils/src/click-block-appender.js
@@ -2,5 +2,5 @@
* Clicks the default block appender.
*/
export async function clickBlockAppender() {
- await page.click( '.editor-default-block-appender__content' );
+ await page.click( '.block-editor-default-block-appender__content' );
}
diff --git a/packages/e2e-test-utils/src/click-block-toolbar-button.js b/packages/e2e-test-utils/src/click-block-toolbar-button.js
index 511b300866673..679727189f741 100644
--- a/packages/e2e-test-utils/src/click-block-toolbar-button.js
+++ b/packages/e2e-test-utils/src/click-block-toolbar-button.js
@@ -4,7 +4,7 @@
* @param {string} buttonAriaLabel The aria label of the button to click.
*/
export async function clickBlockToolbarButton( buttonAriaLabel ) {
- const BLOCK_TOOLBAR_SELECTOR = '.editor-block-toolbar';
+ const BLOCK_TOOLBAR_SELECTOR = '.block-editor-block-toolbar';
const BUTTON_SELECTOR = `${ BLOCK_TOOLBAR_SELECTOR } button[aria-label="${ buttonAriaLabel }"]`;
if ( await page.$( BLOCK_TOOLBAR_SELECTOR ) === null ) {
// Press escape to show the block toolbar
diff --git a/packages/e2e-test-utils/src/get-all-block-inserter-item-titles.js b/packages/e2e-test-utils/src/get-all-block-inserter-item-titles.js
index 859adc89bac15..ef564d81b3866 100644
--- a/packages/e2e-test-utils/src/get-all-block-inserter-item-titles.js
+++ b/packages/e2e-test-utils/src/get-all-block-inserter-item-titles.js
@@ -12,7 +12,7 @@ export async function getAllBlockInserterItemTitles() {
const inserterItemTitles = await page.evaluate( () => {
return Array.from(
document.querySelectorAll(
- '.editor-inserter__results .editor-block-types-list__item-title'
+ '.block-editor-inserter__results .block-editor-block-types-list__item-title'
)
).map(
( inserterItem ) => {
diff --git a/packages/e2e-test-utils/src/get-available-block-transforms.js b/packages/e2e-test-utils/src/get-available-block-transforms.js
index 18810f4183121..36e33f3846f54 100644
--- a/packages/e2e-test-utils/src/get-available-block-transforms.js
+++ b/packages/e2e-test-utils/src/get-available-block-transforms.js
@@ -13,7 +13,7 @@ export const getAvailableBlockTransforms = async () => {
if ( ! await hasBlockSwitcher() ) {
return [];
}
- await page.click( '.editor-block-toolbar .editor-block-switcher' );
+ await page.click( '.block-editor-block-toolbar .block-editor-block-switcher' );
return page.evaluate( ( buttonSelector ) => {
return Array.from(
document.querySelectorAll(
@@ -24,5 +24,5 @@ export const getAvailableBlockTransforms = async () => {
return button.getAttribute( 'aria-label' );
}
);
- }, '.editor-block-types-list .editor-block-types-list__list-item button' );
+ }, '.block-editor-block-types-list .block-editor-block-types-list__list-item button' );
};
diff --git a/packages/e2e-test-utils/src/has-block-switcher.js b/packages/e2e-test-utils/src/has-block-switcher.js
index 8fa0acd241152..f8d0fd1d81782 100644
--- a/packages/e2e-test-utils/src/has-block-switcher.js
+++ b/packages/e2e-test-utils/src/has-block-switcher.js
@@ -6,5 +6,5 @@
export const hasBlockSwitcher = async () => {
return page.evaluate( ( blockSwitcherSelector ) => {
return !! document.querySelector( blockSwitcherSelector );
- }, '.editor-block-toolbar .editor-block-switcher' );
+ }, '.block-editor-block-toolbar .block-editor-block-switcher' );
};
diff --git a/packages/e2e-test-utils/src/open-all-block-inserter-categories.js b/packages/e2e-test-utils/src/open-all-block-inserter-categories.js
index d0b70387c9275..3960cbe646c6a 100644
--- a/packages/e2e-test-utils/src/open-all-block-inserter-categories.js
+++ b/packages/e2e-test-utils/src/open-all-block-inserter-categories.js
@@ -3,7 +3,7 @@
*/
export async function openAllBlockInserterCategories() {
const notOpenCategoryPanels = await page.$$(
- '.editor-inserter__results .components-panel__body:not(.is-opened)'
+ '.block-editor-inserter__results .components-panel__body:not(.is-opened)'
);
for ( const categoryPanel of notOpenCategoryPanels ) {
await categoryPanel.click();
diff --git a/packages/e2e-test-utils/src/open-global-block-inserter.js b/packages/e2e-test-utils/src/open-global-block-inserter.js
index 88fb28703c23d..5bbd83a0d8628 100644
--- a/packages/e2e-test-utils/src/open-global-block-inserter.js
+++ b/packages/e2e-test-utils/src/open-global-block-inserter.js
@@ -5,5 +5,5 @@ export async function openGlobalBlockInserter() {
await page.click( '.edit-post-header [aria-label="Add block"]' );
// Waiting here is necessary because sometimes the inserter takes more time to
// render than Puppeteer takes to complete the 'click' action
- await page.waitForSelector( '.editor-inserter__menu' );
+ await page.waitForSelector( '.block-editor-inserter__menu' );
}
diff --git a/packages/e2e-test-utils/src/transform-block-to.js b/packages/e2e-test-utils/src/transform-block-to.js
index 902d98d35c254..39f191331e379 100644
--- a/packages/e2e-test-utils/src/transform-block-to.js
+++ b/packages/e2e-test-utils/src/transform-block-to.js
@@ -6,7 +6,7 @@
export async function transformBlockTo( name ) {
await page.mouse.move( 200, 300, { steps: 10 } );
await page.mouse.move( 250, 350, { steps: 10 } );
- await page.click( '.editor-block-switcher__toggle' );
- await page.waitForSelector( `.editor-block-types-list__item[aria-label="${ name }"]` );
- await page.click( `.editor-block-types-list__item[aria-label="${ name }"]` );
+ await page.click( '.block-editor-block-switcher__toggle' );
+ await page.waitForSelector( `.block-editor-block-types-list__item[aria-label="${ name }"]` );
+ await page.click( `.block-editor-block-types-list__item[aria-label="${ name }"]` );
}
diff --git a/packages/e2e-tests/specs/a11y.test.js b/packages/e2e-tests/specs/a11y.test.js
index 1c87cea4af54f..6f6cc960f204a 100644
--- a/packages/e2e-tests/specs/a11y.test.js
+++ b/packages/e2e-tests/specs/a11y.test.js
@@ -23,7 +23,7 @@ describe( 'a11y', () => {
await page.keyboard.press( 'Tab' );
const isFocusedToggle = await page.$eval( ':focus', ( focusedElement ) => {
- return focusedElement.classList.contains( 'editor-inserter__toggle' );
+ return focusedElement.classList.contains( 'block-editor-inserter__toggle' );
} );
expect( isFocusedToggle ).toBe( true );
diff --git a/packages/e2e-tests/specs/adding-blocks.test.js b/packages/e2e-tests/specs/adding-blocks.test.js
index 01ad864bda188..7a790862e831c 100644
--- a/packages/e2e-tests/specs/adding-blocks.test.js
+++ b/packages/e2e-tests/specs/adding-blocks.test.js
@@ -29,7 +29,7 @@ describe( 'adding blocks', () => {
it( 'Should insert content using the placeholder and the regular inserter', async () => {
// Click below editor to focus last field (block appender)
- await clickBelow( await page.$( '.editor-default-block-appender' ) );
+ await clickBelow( await page.$( '.block-editor-default-block-appender' ) );
expect( await page.$( '[data-type="core/paragraph"]' ) ).not.toBeNull();
await page.keyboard.type( 'Paragraph block' );
@@ -81,16 +81,16 @@ describe( 'adding blocks', () => {
await page.click( '.editor-post-title__input' );
// Using the between inserter
- const insertionPoint = await page.$( '[data-type="core/quote"] .editor-inserter__toggle' );
+ const insertionPoint = await page.$( '[data-type="core/quote"] .block-editor-inserter__toggle' );
const rect = await insertionPoint.boundingBox();
await page.mouse.move( rect.x + ( rect.width / 2 ), rect.y + ( rect.height / 2 ), { steps: 10 } );
- await page.waitForSelector( '[data-type="core/quote"] .editor-inserter__toggle' );
- await page.click( '[data-type="core/quote"] .editor-inserter__toggle' );
+ await page.waitForSelector( '[data-type="core/quote"] .block-editor-inserter__toggle' );
+ await page.click( '[data-type="core/quote"] .block-editor-inserter__toggle' );
// [TODO]: Search input should be focused immediately. It shouldn't be
// necessary to have `waitForFunction`.
await page.waitForFunction( () => (
document.activeElement &&
- document.activeElement.classList.contains( 'editor-inserter__search' )
+ document.activeElement.classList.contains( 'block-editor-inserter__search' )
) );
await page.keyboard.type( 'para' );
await pressKeyTimes( 'Tab', 3 );
@@ -109,38 +109,38 @@ describe( 'adding blocks', () => {
it( 'should not allow transfer of focus outside of the block-insertion menu once open', async () => {
// Enter the default block and click the inserter toggle button to the left of it.
await page.keyboard.press( 'ArrowDown' );
- await page.click( '.editor-block-list__empty-block-inserter .editor-inserter__toggle' );
+ await page.click( '.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle' );
// Expect the inserter search input to be the active element.
let activeElementClassList = await page.evaluate( () => document.activeElement.classList );
- expect( Object.values( activeElementClassList ) ).toContain( 'editor-inserter__search' );
+ expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__search' );
// Try using the up arrow key (vertical navigation triggers the issue described in #9583).
await page.keyboard.press( 'ArrowUp' );
// Expect the inserter search input to still be the active element.
activeElementClassList = await page.evaluate( () => document.activeElement.classList );
- expect( Object.values( activeElementClassList ) ).toContain( 'editor-inserter__search' );
+ expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__search' );
// Tab to the block search results
await page.keyboard.press( 'Tab' );
// Expect the search results to be the active element.
activeElementClassList = await page.evaluate( () => document.activeElement.classList );
- expect( Object.values( activeElementClassList ) ).toContain( 'editor-inserter__results' );
+ expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__results' );
// Try using the up arrow key
await page.keyboard.press( 'ArrowUp' );
// Expect the search results to still be the active element.
activeElementClassList = await page.evaluate( () => document.activeElement.classList );
- expect( Object.values( activeElementClassList ) ).toContain( 'editor-inserter__results' );
+ expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__results' );
// Press escape to close the block inserter.
await page.keyboard.press( 'Escape' );
// Expect focus to have transferred back to the inserter toggle button.
activeElementClassList = await page.evaluate( () => document.activeElement.classList );
- expect( Object.values( activeElementClassList ) ).toContain( 'editor-inserter__toggle' );
+ expect( Object.values( activeElementClassList ) ).toContain( 'block-editor-inserter__toggle' );
} );
} );
diff --git a/packages/e2e-tests/specs/block-deletion.test.js b/packages/e2e-tests/specs/block-deletion.test.js
index b9013b3572f9e..11227af689d61 100644
--- a/packages/e2e-tests/specs/block-deletion.test.js
+++ b/packages/e2e-tests/specs/block-deletion.test.js
@@ -21,8 +21,8 @@ const addThreeParagraphsToNewPost = async () => {
};
const clickOnBlockSettingsMenuItem = async ( buttonLabel ) => {
- await expect( page ).toClick( '.editor-block-settings-menu__toggle' );
- const itemButton = ( await page.$x( `//*[contains(@class, "editor-block-settings-menu__popover")]//button[contains(text(), '${ buttonLabel }')]` ) )[ 0 ];
+ await expect( page ).toClick( '.block-editor-block-settings-menu__toggle' );
+ const itemButton = ( await page.$x( `//*[contains(@class, "block-editor-block-settings-menu__popover")]//button[contains(text(), '${ buttonLabel }')]` ) )[ 0 ];
await itemButton.click();
};
@@ -80,7 +80,7 @@ describe( 'block deletion -', () => {
await page.click( '.editor-post-title' );
// Click on the third (image) block so that its wrapper is selected and backspace to delete it.
- await page.click( '.editor-block-list__block:nth-child(3) .components-placeholder__label' );
+ await page.click( '.block-editor-block-list__block:nth-child(3) .components-placeholder__label' );
await page.keyboard.press( 'Backspace' );
expect( await getEditedPostContent() ).toMatchSnapshot();
@@ -122,7 +122,7 @@ describe( 'deleting all blocks', () => {
await clickOnBlockSettingsMenuItem( 'Remove Block' );
// There is a default block:
- expect( await page.$$( '.editor-block-list__block' ) ).toHaveLength( 1 );
+ expect( await page.$$( '.block-editor-block-list__block' ) ).toHaveLength( 1 );
// But the effective saved content is still empty:
expect( await getEditedPostContent() ).toBe( '' );
diff --git a/packages/e2e-tests/specs/block-hierarchy-navigation.test.js b/packages/e2e-tests/specs/block-hierarchy-navigation.test.js
index 28b5c88b9d2c2..200e5a234f06b 100644
--- a/packages/e2e-tests/specs/block-hierarchy-navigation.test.js
+++ b/packages/e2e-tests/specs/block-hierarchy-navigation.test.js
@@ -26,7 +26,7 @@ describe( 'Navigating the block hierarchy', () => {
// Navigate to the columns blocks.
await page.click( '[aria-label="Block Navigation"]' );
- const columnsBlockMenuItem = ( await page.$x( "//button[contains(@class,'editor-block-navigation__item') and contains(text(), 'Columns')]" ) )[ 0 ];
+ const columnsBlockMenuItem = ( await page.$x( "//button[contains(@class,'block-editor-block-navigation__item') and contains(text(), 'Columns')]" ) )[ 0 ];
await columnsBlockMenuItem.click();
// Tweak the columns count.
@@ -39,7 +39,7 @@ describe( 'Navigating the block hierarchy', () => {
// Navigate to the last column block.
await page.click( '[aria-label="Block Navigation"]' );
const lastColumnsBlockMenuItem = ( await page.$x(
- "//button[contains(@class,'editor-block-navigation__item') and contains(text(), 'Column')]"
+ "//button[contains(@class,'block-editor-block-navigation__item') and contains(text(), 'Column')]"
) )[ 3 ];
await lastColumnsBlockMenuItem.click();
diff --git a/packages/e2e-tests/specs/block-mover.test.js b/packages/e2e-tests/specs/block-mover.test.js
index b9011ee7d0101..09f6ba41a2a82 100644
--- a/packages/e2e-tests/specs/block-mover.test.js
+++ b/packages/e2e-tests/specs/block-mover.test.js
@@ -10,29 +10,29 @@ describe( 'block mover', () => {
it( 'should show block mover when more than one block exists', async () => {
// Create a two blocks on the page.
- await page.click( '.editor-default-block-appender' );
+ await page.click( '.block-editor-default-block-appender' );
await page.keyboard.type( 'First Paragraph' );
await page.keyboard.press( 'Enter' );
await page.keyboard.type( 'Second Paragraph' );
// Select a block so the block mover is rendered.
- await page.focus( '.editor-block-list__block' );
+ await page.focus( '.block-editor-block-list__block' );
- const blockMover = await page.$$( '.editor-block-mover' );
+ const blockMover = await page.$$( '.block-editor-block-mover' );
// There should be a block mover.
expect( blockMover ).toHaveLength( 1 );
} );
it( 'should hide block mover when only one block exists', async () => {
// Create a single block on the page.
- await page.click( '.editor-default-block-appender' );
+ await page.click( '.block-editor-default-block-appender' );
await page.keyboard.type( 'First Paragraph' );
// Select a block so the block mover has the possibility of being rendered.
- await page.focus( '.editor-block-list__block' );
+ await page.focus( '.block-editor-block-list__block' );
// Ensure no block mover exists when only one block exists on the page.
- const blockMover = await page.$$( '.editor-block-mover' );
+ const blockMover = await page.$$( '.block-editor-block-mover' );
expect( blockMover ).toHaveLength( 0 );
} );
} );
diff --git a/packages/e2e-tests/specs/blocks/columns.test.js b/packages/e2e-tests/specs/blocks/columns.test.js
index f8b97c62b91a8..fd061642478e7 100644
--- a/packages/e2e-tests/specs/blocks/columns.test.js
+++ b/packages/e2e-tests/specs/blocks/columns.test.js
@@ -17,7 +17,7 @@ describe( 'Columns', () => {
it( 'restricts all blocks inside the columns block', async () => {
await insertBlock( 'Columns' );
await page.click( '[aria-label="Block Navigation"]' );
- const columnBlockMenuItem = ( await page.$x( '//button[contains(concat(" ", @class, " "), " editor-block-navigation__item-button ")][text()="Column"]' ) )[ 0 ];
+ const columnBlockMenuItem = ( await page.$x( '//button[contains(concat(" ", @class, " "), " block-editor-block-navigation__item-button ")][text()="Column"]' ) )[ 0 ];
await columnBlockMenuItem.click();
await openGlobalBlockInserter();
await openAllBlockInserterCategories();
diff --git a/packages/e2e-tests/specs/blocks/media-text.test.js b/packages/e2e-tests/specs/blocks/media-text.test.js
index f9687b3af99cf..2e59b77670327 100644
--- a/packages/e2e-tests/specs/blocks/media-text.test.js
+++ b/packages/e2e-tests/specs/blocks/media-text.test.js
@@ -16,7 +16,7 @@ describe( 'Media Text', () => {
it( 'restricts blocks that can be inserted', async () => {
await insertBlock( 'Media & Text' );
- await page.click( '.wp-block-media-text .editor-rich-text' );
+ await page.click( '.wp-block-media-text .block-editor-rich-text' );
await openGlobalBlockInserter();
await openAllBlockInserterCategories();
expect( await getAllBlockInserterItemTitles() ).toMatchSnapshot();
diff --git a/packages/e2e-tests/specs/convert-block-type.test.js b/packages/e2e-tests/specs/convert-block-type.test.js
index b99c8541d632f..2c71a3d3a139f 100644
--- a/packages/e2e-tests/specs/convert-block-type.test.js
+++ b/packages/e2e-tests/specs/convert-block-type.test.js
@@ -18,7 +18,7 @@ describe( 'Code block', () => {
await insertBlock( 'Code' );
- await page.type( '.editor-block-list__block textarea', code );
+ await page.type( '.block-editor-block-list__block textarea', code );
// Verify the content starts out as a Code block.
const originalPostContent = await getEditedPostContent();
diff --git a/packages/e2e-tests/specs/editor-modes.test.js b/packages/e2e-tests/specs/editor-modes.test.js
index c8572f5526103..155b2c207013b 100644
--- a/packages/e2e-tests/specs/editor-modes.test.js
+++ b/packages/e2e-tests/specs/editor-modes.test.js
@@ -16,7 +16,7 @@ describe( 'Editing modes (visual/HTML)', () => {
it( 'should switch between visual and HTML modes', async () => {
// This block should be in "visual" mode by default.
- let visualBlock = await page.$$( '.editor-block-list__layout .editor-block-list__block .editor-rich-text' );
+ let visualBlock = await page.$$( '.block-editor-block-list__layout .block-editor-block-list__block .block-editor-rich-text' );
expect( visualBlock ).toHaveLength( 1 );
// Move the mouse to show the block toolbar
@@ -29,7 +29,7 @@ describe( 'Editing modes (visual/HTML)', () => {
await changeModeButton.click();
// Wait for the block to be converted to HTML editing mode.
- const htmlBlock = await page.$$( '.editor-block-list__layout .editor-block-list__block .editor-block-list__block-html-textarea' );
+ const htmlBlock = await page.$$( '.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-html-textarea' );
expect( htmlBlock ).toHaveLength( 1 );
// Move the mouse to show the block toolbar
@@ -42,7 +42,7 @@ describe( 'Editing modes (visual/HTML)', () => {
await changeModeButton.click();
// This block should be in "visual" mode by default.
- visualBlock = await page.$$( '.editor-block-list__layout .editor-block-list__block .editor-rich-text' );
+ visualBlock = await page.$$( '.block-editor-block-list__layout .block-editor-block-list__block .block-editor-rich-text' );
expect( visualBlock ).toHaveLength( 1 );
} );
@@ -73,7 +73,7 @@ describe( 'Editing modes (visual/HTML)', () => {
await changeModeButton.click();
// Make sure the paragraph content is rendered as expected.
- let htmlBlockContent = await page.$eval( '.editor-block-list__layout .editor-block-list__block .editor-block-list__block-html-textarea', ( node ) => node.textContent );
+ let htmlBlockContent = await page.$eval( '.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-html-textarea', ( node ) => node.textContent );
expect( htmlBlockContent ).toEqual( '
Hello world!
' );
// Change the font size using the sidebar.
@@ -82,14 +82,14 @@ describe( 'Editing modes (visual/HTML)', () => {
await changeSizeButton.click();
// Make sure the HTML content updated.
- htmlBlockContent = await page.$eval( '.editor-block-list__layout .editor-block-list__block .editor-block-list__block-html-textarea', ( node ) => node.textContent );
+ htmlBlockContent = await page.$eval( '.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-html-textarea', ( node ) => node.textContent );
expect( htmlBlockContent ).toEqual( '
Hello world!
' );
} );
it( 'the code editor should unselect blocks and disable the inserter', async () => {
// The paragraph block should be selected
const title = await page.$eval(
- '.editor-block-inspector__card-title',
+ '.block-editor-block-inspector__card-title',
( element ) => element.innerText
);
expect( title ).toBe( 'Paragraph' );
@@ -107,11 +107,11 @@ describe( 'Editing modes (visual/HTML)', () => {
// No block is selected
await page.click( '.edit-post-sidebar__panel-tab[data-label="Block"]' );
- const noBlocksElement = await page.$( '.editor-block-inspector__no-blocks' );
+ const noBlocksElement = await page.$( '.block-editor-block-inspector__no-blocks' );
expect( noBlocksElement ).not.toBeNull();
// The inserter is disabled
- const disabledInserter = await page.$( '.editor-inserter > button:disabled' );
+ const disabledInserter = await page.$( '.block-editor-inserter > button:disabled' );
expect( disabledInserter ).not.toBeNull();
} );
} );
diff --git a/packages/e2e-tests/specs/invalid-block.test.js b/packages/e2e-tests/specs/invalid-block.test.js
index 007912aafe317..d0d8dda5a805d 100644
--- a/packages/e2e-tests/specs/invalid-block.test.js
+++ b/packages/e2e-tests/specs/invalid-block.test.js
@@ -24,7 +24,7 @@ describe( 'invalid blocks', () => {
await changeModeButton.click();
// Focus on the textarea and enter an invalid paragraph
- await page.click( '.editor-block-list__layout .editor-block-list__block .editor-block-list__block-html-textarea' );
+ await page.click( '.block-editor-block-list__layout .block-editor-block-list__block .block-editor-block-list__block-html-textarea' );
await page.keyboard.type( '
invalid paragraph' );
// Takes the focus away from the block so the invalid warning is triggered
@@ -33,10 +33,10 @@ describe( 'invalid blocks', () => {
expect( console ).toHaveWarned();
// Click on the 'resolve' button
- await page.click( '.editor-warning__actions button' );
+ await page.click( '.block-editor-warning__actions button' );
// Check we get the resolve modal with the appropriate contents
- const htmlBlockContent = await page.$eval( '.editor-block-compare__html', ( node ) => node.textContent );
+ const htmlBlockContent = await page.$eval( '.block-editor-block-compare__html', ( node ) => node.textContent );
expect( htmlBlockContent ).toEqual( '
hello
invalid paragraph' );
} );
} );
diff --git a/packages/e2e-tests/specs/keyboard-navigable-blocks.test.js b/packages/e2e-tests/specs/keyboard-navigable-blocks.test.js
index e9db2951cc5f6..0945d3525f896 100644
--- a/packages/e2e-tests/specs/keyboard-navigable-blocks.test.js
+++ b/packages/e2e-tests/specs/keyboard-navigable-blocks.test.js
@@ -29,7 +29,7 @@ const tabThroughParagraphBlock = async ( paragraphText ) => {
// Tab causes 'add block' button to receive focus
await page.keyboard.press( 'Tab' );
const isFocusedParagraphInserterToggle = await page.evaluate( () =>
- document.activeElement.classList.contains( 'editor-inserter__toggle' )
+ document.activeElement.classList.contains( 'block-editor-inserter__toggle' )
);
await expect( isFocusedParagraphInserterToggle ).toBe( true );
@@ -54,14 +54,14 @@ const tabThroughBlockMoverControl = async () => {
// Tab to focus on the 'move up' control
await page.keyboard.press( 'Tab' );
const isFocusedMoveUpControl = await page.evaluate( () =>
- document.activeElement.classList.contains( 'editor-block-mover__control' )
+ document.activeElement.classList.contains( 'block-editor-block-mover__control' )
);
await expect( isFocusedMoveUpControl ).toBe( true );
// Tab to focus on the 'move down' control
await page.keyboard.press( 'Tab' );
const isFocusedMoveDownControl = await page.evaluate( () =>
- document.activeElement.classList.contains( 'editor-block-mover__control' )
+ document.activeElement.classList.contains( 'block-editor-block-mover__control' )
);
await expect( isFocusedMoveDownControl ).toBe( true );
};
@@ -71,7 +71,7 @@ const tabThroughBlockToolbar = async () => {
await page.keyboard.press( 'Tab' );
const isFocusedBlockSwitcherControl = await page.evaluate( () =>
document.activeElement.classList.contains(
- 'editor-block-switcher__toggle'
+ 'block-editor-block-switcher__toggle'
)
);
await expect( isFocusedBlockSwitcherControl ).toBe( true );
@@ -129,7 +129,7 @@ const tabThroughBlockToolbar = async () => {
await page.keyboard.press( 'Tab' );
const isFocusedBlockSettingsDropdown = await page.evaluate( () =>
document.activeElement.classList.contains(
- 'editor-block-settings-menu__toggle'
+ 'block-editor-block-settings-menu__toggle'
)
);
await expect( isFocusedBlockSettingsDropdown ).toBe( true );
diff --git a/packages/e2e-tests/specs/links.test.js b/packages/e2e-tests/specs/links.test.js
index b4be3dbfc53a6..a41aa953bd8e7 100644
--- a/packages/e2e-tests/specs/links.test.js
+++ b/packages/e2e-tests/specs/links.test.js
@@ -22,7 +22,7 @@ describe( 'Links', () => {
} );
const waitForAutoFocus = async () => {
- await page.waitForFunction( () => !! document.activeElement.closest( '.editor-url-input' ) );
+ await page.waitForFunction( () => !! document.activeElement.closest( '.block-editor-url-input' ) );
};
it( 'can be created by selecting text and clicking Link', async () => {
@@ -205,12 +205,12 @@ describe( 'Links', () => {
// Typing "left" should not close the dialog
await page.keyboard.press( 'ArrowLeft' );
- let popover = await page.$( '.editor-url-popover' );
+ let popover = await page.$( '.block-editor-url-popover' );
expect( popover ).not.toBeNull();
// Escape should close the dialog still.
await page.keyboard.press( 'Escape' );
- popover = await page.$( '.editor-url-popover' );
+ popover = await page.$( '.block-editor-url-popover' );
expect( popover ).toBeNull();
} );
@@ -224,12 +224,12 @@ describe( 'Links', () => {
// Typing "left" should not close the dialog
await page.keyboard.press( 'ArrowLeft' );
- let popover = await page.$( '.editor-url-popover' );
+ let popover = await page.$( '.block-editor-url-popover' );
expect( popover ).not.toBeNull();
// Escape should close the dialog still.
await page.keyboard.press( 'Escape' );
- popover = await page.$( '.editor-url-popover' );
+ popover = await page.$( '.block-editor-url-popover' );
expect( popover ).toBeNull();
} );
@@ -284,8 +284,8 @@ describe( 'Links', () => {
await waitForAutoFocus();
await page.keyboard.type( titleText );
- await page.waitForSelector( '.editor-url-input__suggestion' );
- const autocompleteSuggestions = await page.$x( `//*[contains(@class, "editor-url-input__suggestion")]//button[contains(text(), '${ titleText }')]` );
+ await page.waitForSelector( '.block-editor-url-input__suggestion' );
+ const autocompleteSuggestions = await page.$x( `//*[contains(@class, "block-editor-url-input__suggestion")]//button[contains(text(), '${ titleText }')]` );
// Expect there to be some autocomplete suggestions.
expect( autocompleteSuggestions.length ).toBeGreaterThan( 0 );
@@ -294,16 +294,16 @@ describe( 'Links', () => {
// Expect that clicking on the autocomplete suggestion doesn't dismiss the link popover.
await firstSuggestion.click();
- expect( await page.$( '.editor-url-popover' ) ).not.toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).not.toBeNull();
// Expect the url input value to have been updated with the post url.
- const inputValue = await page.evaluate( () => document.querySelector( '.editor-url-input input[aria-label="URL"]' ).value );
+ const inputValue = await page.evaluate( () => document.querySelector( '.block-editor-url-input input[aria-label="URL"]' ).value );
expect( inputValue ).toEqual( postURL );
// Expect the link to apply correctly.
// Note - have avoided using snapshots here since the link url can't be determined ahead of time.
await page.click( 'button[aria-label="Apply"]' );
- const linkHref = await page.evaluate( () => document.querySelector( '.editor-format-toolbar__link-container-value' ).href );
+ const linkHref = await page.evaluate( () => document.querySelector( '.block-editor-format-toolbar__link-container-value' ).href );
expect( linkHref ).toEqual( postURL );
} );
@@ -326,21 +326,21 @@ describe( 'Links', () => {
await waitForAutoFocus();
await page.keyboard.type( titleText );
- await page.waitForSelector( '.editor-url-input__suggestion' );
- const autocompleteSuggestions = await page.$x( `//*[contains(@class, "editor-url-input__suggestion")]//button[contains(text(), '${ titleText }')]` );
+ await page.waitForSelector( '.block-editor-url-input__suggestion' );
+ const autocompleteSuggestions = await page.$x( `//*[contains(@class, "block-editor-url-input__suggestion")]//button[contains(text(), '${ titleText }')]` );
// Expect there to be some autocomplete suggestions.
expect( autocompleteSuggestions.length ).toBeGreaterThan( 0 );
// Expect the the first suggestion to be selected when pressing the down arrow.
await page.keyboard.press( 'ArrowDown' );
- const isSelected = await page.evaluate( () => document.querySelector( '.editor-url-input__suggestion' ).getAttribute( 'aria-selected' ) );
+ const isSelected = await page.evaluate( () => document.querySelector( '.block-editor-url-input__suggestion' ).getAttribute( 'aria-selected' ) );
expect( isSelected ).toBe( 'true' );
// Expect the link to apply correctly when pressing Enter.
// Note - have avoided using snapshots here since the link url can't be determined ahead of time.
await page.keyboard.press( 'Enter' );
- const linkHref = await page.evaluate( () => document.querySelector( '.editor-format-toolbar__link-container-value' ).href );
+ const linkHref = await page.evaluate( () => document.querySelector( '.block-editor-format-toolbar__link-container-value' ).href );
expect( linkHref ).toEqual( postURL );
} );
@@ -360,34 +360,34 @@ describe( 'Links', () => {
// Wait for the URL field to auto-focus
await waitForAutoFocus();
- expect( await page.$( '.editor-url-popover' ) ).not.toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).not.toBeNull();
// Trigger the autocomplete suggestion list and select the first suggestion.
await page.keyboard.type( titleText );
- await page.waitForSelector( '.editor-url-input__suggestion' );
+ await page.waitForSelector( '.block-editor-url-input__suggestion' );
await page.keyboard.press( 'ArrowDown' );
// Expect the the escape key to dismiss the popover when the autocomplete suggestion list is open.
await page.keyboard.press( 'Escape' );
- expect( await page.$( '.editor-url-popover' ) ).toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).toBeNull();
// Press Cmd+K to insert a link
await pressKeyWithModifier( 'primary', 'K' );
// Wait for the URL field to auto-focus
await waitForAutoFocus();
- expect( await page.$( '.editor-url-popover' ) ).not.toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).not.toBeNull();
// Expect the the escape key to dismiss the popover normally.
await page.keyboard.press( 'Escape' );
- expect( await page.$( '.editor-url-popover' ) ).toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).toBeNull();
// Press Cmd+K to insert a link
await pressKeyWithModifier( 'primary', 'K' );
// Wait for the URL field to auto-focus
await waitForAutoFocus();
- expect( await page.$( '.editor-url-popover' ) ).not.toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).not.toBeNull();
// Tab to the settings icon button.
await page.keyboard.press( 'Tab' );
@@ -395,7 +395,7 @@ describe( 'Links', () => {
// Expect the the escape key to dismiss the popover normally.
await page.keyboard.press( 'Escape' );
- expect( await page.$( '.editor-url-popover' ) ).toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).toBeNull();
} );
it( 'can be modified using the keyboard once a link has been set', async () => {
@@ -413,19 +413,19 @@ describe( 'Links', () => {
// Deselect the link text by moving the caret to the end of the line
// and the link popover should not be displayed.
await page.keyboard.press( 'End' );
- expect( await page.$( '.editor-url-popover' ) ).toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).toBeNull();
// Move the caret back into the link text and the link popover
// should be displayed.
await page.keyboard.press( 'ArrowLeft' );
- expect( await page.$( '.editor-url-popover' ) ).not.toBeNull();
+ expect( await page.$( '.block-editor-url-popover' ) ).not.toBeNull();
// Press Cmd+K to edit the link and the url-input should become
// focused with the value previously inserted.
await pressKeyWithModifier( 'primary', 'K' );
await waitForAutoFocus();
const activeElementParentClasses = await page.evaluate( () => Object.values( document.activeElement.parentElement.classList ) );
- expect( activeElementParentClasses ).toContain( 'editor-url-input' );
+ expect( activeElementParentClasses ).toContain( 'block-editor-url-input' );
const activeElementValue = await page.evaluate( () => document.activeElement.value );
expect( activeElementValue ).toBe( URL );
} );
@@ -451,7 +451,7 @@ describe( 'Links', () => {
// Focus on first paragraph, so the link popover will appear over the subsequent ones
await page.click( '[aria-label="Block Navigation"]' );
- await page.click( '.editor-block-navigation__item button' );
+ await page.click( '.block-editor-block-navigation__item button' );
// Select some text
await pressKeyWithModifier( 'shiftAlt', 'ArrowLeft' );
@@ -465,7 +465,7 @@ describe( 'Links', () => {
await page.click( 'button[aria-label="Link Settings"]' );
// Move mouse over the 'open in new tab' section, then click and drag
- const settings = await page.$( '.editor-url-popover__settings' );
+ const settings = await page.$( '.block-editor-url-popover__settings' );
const bounds = await settings.boundingBox();
await page.mouse.move( bounds.x, bounds.y );
@@ -474,7 +474,7 @@ describe( 'Links', () => {
await page.mouse.up();
// The link popover should still be visible
- const popover = await page.$$( '.editor-url-popover' );
+ const popover = await page.$$( '.block-editor-url-popover' );
expect( popover ).toHaveLength( 1 );
} );
diff --git a/packages/e2e-tests/specs/navigable-toolbar.test.js b/packages/e2e-tests/specs/navigable-toolbar.test.js
index 1ff5f6cb2c953..e3fb884185008 100644
--- a/packages/e2e-tests/specs/navigable-toolbar.test.js
+++ b/packages/e2e-tests/specs/navigable-toolbar.test.js
@@ -30,7 +30,7 @@ describe( 'block toolbar', () => {
) );
const isInBlockToolbar = () => page.evaluate( () => (
- !! document.activeElement.closest( '.editor-block-toolbar' )
+ !! document.activeElement.closest( '.block-editor-block-toolbar' )
) );
describe( label, () => {
diff --git a/packages/e2e-tests/specs/plugins/__snapshots__/plugins-api.test.js.snap b/packages/e2e-tests/specs/plugins/__snapshots__/plugins-api.test.js.snap
index 0b62fc522bf7e..a3dda4545d67d 100644
--- a/packages/e2e-tests/specs/plugins/__snapshots__/plugins-api.test.js.snap
+++ b/packages/e2e-tests/specs/plugins/__snapshots__/plugins-api.test.js.snap
@@ -1,3 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
-exports[`Using Plugins API Sidebar Should open plugins sidebar using More Menu item and render content 1`] = `"
"`;
+exports[`Using Plugins API Sidebar Should open plugins sidebar using More Menu item and render content 1`] = `"
"`;
diff --git a/packages/e2e-tests/specs/plugins/align-hook.test.js b/packages/e2e-tests/specs/plugins/align-hook.test.js
index 1fbe802f84142..aacacbe657e46 100644
--- a/packages/e2e-tests/specs/plugins/align-hook.test.js
+++ b/packages/e2e-tests/specs/plugins/align-hook.test.js
@@ -29,7 +29,7 @@ describe( 'Align Hook Works As Expected', () => {
const buttonLabels = await page.evaluate( () => {
return Array.from(
document.querySelectorAll(
- '.editor-block-toolbar button[aria-label^="Align"]'
+ '.block-editor-block-toolbar button[aria-label^="Align"]'
)
).map(
( button ) => {
@@ -54,7 +54,7 @@ describe( 'Align Hook Works As Expected', () => {
it( 'Does not apply any alignment by default', async () => {
await insertBlock( blockName );
// verify no alignment button is in pressed state
- const pressedButtons = await page.$$( '.editor-block-toolbar button[aria-label^="Align"][aria-pressed="true"]' );
+ const pressedButtons = await page.$$( '.block-editor-block-toolbar button[aria-label^="Align"][aria-pressed="true"]' );
expect( pressedButtons ).toHaveLength( 0 );
} );
};
@@ -69,7 +69,7 @@ describe( 'Align Hook Works As Expected', () => {
const createCorrectlyAppliesAndRemovesAlignmentTest = ( blockName, alignment ) => {
it( 'Correctly applies the selected alignment and correctly removes the alignment',
async () => {
- const BUTTON_SELECTOR = `.editor-block-toolbar button[aria-label="Align ${ alignment }"]`;
+ const BUTTON_SELECTOR = `.block-editor-block-toolbar button[aria-label="Align ${ alignment }"]`;
const BUTTON_PRESSED_SELECTOR = `${ BUTTON_SELECTOR }[aria-pressed="true"]`;
// set the specified alignment.
await insertBlock( blockName );
@@ -161,7 +161,7 @@ describe( 'Align Hook Works As Expected', () => {
describe( 'Block with default align', () => {
const BLOCK_NAME = 'Test Default Align';
- const PRESSED_BUTTON_SELECTOR = '.editor-block-toolbar button[aria-label="Align right"][aria-pressed="true"]';
+ const PRESSED_BUTTON_SELECTOR = '.block-editor-block-toolbar button[aria-label="Align right"][aria-pressed="true"]';
createShowsTheExpectedButtonsTest( BLOCK_NAME, [
'Align left',
'Align center',
diff --git a/packages/e2e-tests/specs/plugins/annotations.test.js b/packages/e2e-tests/specs/plugins/annotations.test.js
index 1fe3554ad2f5e..65474777d3db1 100644
--- a/packages/e2e-tests/specs/plugins/annotations.test.js
+++ b/packages/e2e-tests/specs/plugins/annotations.test.js
@@ -9,8 +9,8 @@ import {
} from '@wordpress/e2e-test-utils';
const clickOnBlockSettingsMenuItem = async ( buttonLabel ) => {
- await expect( page ).toClick( '.editor-block-settings-menu__toggle' );
- const itemButton = ( await page.$x( `//*[contains(@class, "editor-block-settings-menu__popover")]//button[contains(text(), '${ buttonLabel }')]` ) )[ 0 ];
+ await expect( page ).toClick( '.block-editor-block-settings-menu__toggle' );
+ const itemButton = ( await page.$x( `//*[contains(@class, "block-editor-block-settings-menu__popover")]//button[contains(text(), '${ buttonLabel }')]` ) )[ 0 ];
await itemButton.click();
};
@@ -105,7 +105,7 @@ describe( 'Using Plugins API', () => {
await clickOnBlockSettingsMenuItem( 'Edit as HTML' );
- const htmlContent = await page.$$( '.editor-block-list__block-html-textarea' );
+ const htmlContent = await page.$$( '.block-editor-block-list__block-html-textarea' );
const html = await page.evaluate( ( el ) => {
return el.innerHTML;
}, htmlContent[ 0 ] );
diff --git a/packages/e2e-tests/specs/plugins/block-icons.test.js b/packages/e2e-tests/specs/plugins/block-icons.test.js
index 0e7a15f69580d..3035a6ddf1aea 100644
--- a/packages/e2e-tests/specs/plugins/block-icons.test.js
+++ b/packages/e2e-tests/specs/plugins/block-icons.test.js
@@ -10,10 +10,10 @@ import {
searchForBlock,
} from '@wordpress/e2e-test-utils';
-const INSERTER_BUTTON_SELECTOR = '.components-popover__content .editor-block-types-list__item';
-const INSERTER_ICON_WRAPPER_SELECTOR = `${ INSERTER_BUTTON_SELECTOR } .editor-block-types-list__item-icon`;
-const INSERTER_ICON_SELECTOR = `${ INSERTER_BUTTON_SELECTOR } .editor-block-icon`;
-const INSPECTOR_ICON_SELECTOR = '.edit-post-sidebar .editor-block-icon';
+const INSERTER_BUTTON_SELECTOR = '.components-popover__content .block-editor-block-types-list__item';
+const INSERTER_ICON_WRAPPER_SELECTOR = `${ INSERTER_BUTTON_SELECTOR } .block-editor-block-types-list__item-icon`;
+const INSERTER_ICON_SELECTOR = `${ INSERTER_BUTTON_SELECTOR } .block-editor-block-icon`;
+const INSPECTOR_ICON_SELECTOR = '.edit-post-sidebar .block-editor-block-icon';
async function getInnerHTML( selector ) {
return await page.$eval( selector, ( element ) => element.innerHTML );
@@ -37,7 +37,7 @@ async function getFirstInserterIcon() {
async function selectFirstBlock() {
await pressKeyWithModifier( 'access', 'o' );
- const navButtons = await page.$$( '.editor-block-navigation__item-button' );
+ const navButtons = await page.$$( '.block-editor-block-navigation__item-button' );
await navButtons[ 0 ].click();
}
diff --git a/packages/e2e-tests/specs/plugins/container-blocks.test.js b/packages/e2e-tests/specs/plugins/container-blocks.test.js
index 50c4d80854e74..c01eb6eeca9a4 100644
--- a/packages/e2e-tests/specs/plugins/container-blocks.test.js
+++ b/packages/e2e-tests/specs/plugins/container-blocks.test.js
@@ -79,10 +79,10 @@ describe( 'Container block without paragraph support', () => {
await insertBlock( 'Container without paragraph' );
// Open the specific appender used when there's no paragraph support.
- await page.click( '.editor-inner-blocks .block-list-appender .block-list-appender__toggle' );
+ await page.click( '.block-editor-inner-blocks .block-list-appender .block-list-appender__toggle' );
// Insert an image block.
- await page.click( '.editor-inserter__results button[aria-label="Image"]' );
+ await page.click( '.block-editor-inserter__results button[aria-label="Image"]' );
// Check the inserted content.
expect( await getEditedPostContent() ).toMatchSnapshot();
diff --git a/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js b/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js
index 7334ccce4f1c8..a25f9a81af95c 100644
--- a/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js
+++ b/packages/e2e-tests/specs/plugins/inner-blocks-allowed-blocks.test.js
@@ -12,7 +12,7 @@ import {
} from '@wordpress/e2e-test-utils';
describe( 'Allowed Blocks Setting on InnerBlocks ', () => {
- const paragraphSelector = '.editor-rich-text__editable.wp-block-paragraph';
+ const paragraphSelector = '.block-editor-rich-text__editable.wp-block-paragraph';
beforeAll( async () => {
await activatePlugin( 'gutenberg-test-innerblocks-allowed-blocks' );
} );
diff --git a/packages/e2e-tests/specs/reusable-blocks.test.js b/packages/e2e-tests/specs/reusable-blocks.test.js
index 982762b63dfec..73d7b9117bf43 100644
--- a/packages/e2e-tests/specs/reusable-blocks.test.js
+++ b/packages/e2e-tests/specs/reusable-blocks.test.js
@@ -61,7 +61,7 @@ describe( 'Reusable Blocks', () => {
await page.waitForXPath( '//button[text()="Edit"]' );
// Check that we have a reusable block on the page
- const block = await page.$( '.editor-block-list__block[data-type="core/block"]' );
+ const block = await page.$( '.block-editor-block-list__block[data-type="core/block"]' );
expect( block ).not.toBeNull();
// Check that its title is displayed
@@ -95,7 +95,7 @@ describe( 'Reusable Blocks', () => {
await page.waitForXPath( '//button[text()="Edit"]' );
// Check that we have a reusable block on the page
- const block = await page.$( '.editor-block-list__block[data-type="core/block"]' );
+ const block = await page.$( '.block-editor-block-list__block[data-type="core/block"]' );
expect( block ).not.toBeNull();
// Check that it is untitled
@@ -132,7 +132,7 @@ describe( 'Reusable Blocks', () => {
await page.waitForXPath( '//button[text()="Edit"]' );
// Check that we have a reusable block on the page
- const block = await page.$( '.editor-block-list__block[data-type="core/block"]' );
+ const block = await page.$( '.block-editor-block-list__block[data-type="core/block"]' );
expect( block ).not.toBeNull();
// Check that its title is displayed
@@ -144,7 +144,7 @@ describe( 'Reusable Blocks', () => {
// Check that its content is up to date
const text = await page.$eval(
- '.editor-block-list__block[data-type="core/block"] .editor-rich-text',
+ '.block-editor-block-list__block[data-type="core/block"] .block-editor-rich-text',
( element ) => element.innerText
);
expect( text ).toMatch( 'Oh! Hello there!' );
@@ -162,12 +162,12 @@ describe( 'Reusable Blocks', () => {
await convertButton.click();
// Check that we have a paragraph block on the page
- const block = await page.$( '.editor-block-list__block[data-type="core/paragraph"]' );
+ const block = await page.$( '.block-editor-block-list__block[data-type="core/paragraph"]' );
expect( block ).not.toBeNull();
// Check that its content is up to date
const text = await page.$eval(
- '.editor-block-list__block[data-type="core/paragraph"] .editor-rich-text',
+ '.block-editor-block-list__block[data-type="core/paragraph"] .block-editor-rich-text',
( element ) => element.innerText
);
expect( text ).toMatch( 'Oh! Hello there!' );
@@ -195,7 +195,7 @@ describe( 'Reusable Blocks', () => {
// Check that we couldn't find it
const items = await page.$$(
- '.editor-block-types-list__item[aria-label="Surprised greeting block"]'
+ '.block-editor-block-types-list__item[aria-label="Surprised greeting block"]'
);
expect( items ).toHaveLength( 0 );
} );
@@ -240,7 +240,7 @@ describe( 'Reusable Blocks', () => {
await page.waitForXPath( '//button[text()="Edit"]' );
// Check that we have a reusable block on the page
- const block = await page.$( '.editor-block-list__block[data-type="core/block"]' );
+ const block = await page.$( '.block-editor-block-list__block[data-type="core/block"]' );
expect( block ).not.toBeNull();
// Check that its title is displayed
diff --git a/packages/e2e-tests/specs/splitting-merging.test.js b/packages/e2e-tests/specs/splitting-merging.test.js
index c5ea8bf94ce77..8df6e104645ae 100644
--- a/packages/e2e-tests/specs/splitting-merging.test.js
+++ b/packages/e2e-tests/specs/splitting-merging.test.js
@@ -194,7 +194,7 @@ describe( 'splitting and merging blocks', () => {
await page.keyboard.press( 'Backspace' );
// There is a default block:
- expect( await page.$$( '.editor-block-list__block' ) ).toHaveLength( 1 );
+ expect( await page.$$( '.block-editor-block-list__block' ) ).toHaveLength( 1 );
// But the effective saved content is still empty:
expect( await getEditedPostContent() ).toBe( '' );
diff --git a/packages/e2e-tests/specs/style-variation.test.js b/packages/e2e-tests/specs/style-variation.test.js
index 33ddcc3c2f809..db4c0d98fa5cb 100644
--- a/packages/e2e-tests/specs/style-variation.test.js
+++ b/packages/e2e-tests/specs/style-variation.test.js
@@ -20,7 +20,7 @@ describe( 'adding blocks', () => {
await clickBlockToolbarButton( 'Change block type' );
- const styleVariations = await page.$$( '.editor-block-styles__item' );
+ const styleVariations = await page.$$( '.block-editor-block-styles__item' );
await styleVariations[ 1 ].click();
// Check the content
diff --git a/packages/edit-post/src/components/header/header-toolbar/style.scss b/packages/edit-post/src/components/header/header-toolbar/style.scss
index 02410b24407a5..ceed4a0364ffd 100644
--- a/packages/edit-post/src/components/header/header-toolbar/style.scss
+++ b/packages/edit-post/src/components/header/header-toolbar/style.scss
@@ -12,7 +12,7 @@
}
// Hide table of contents and block navigation on mobile.
- .editor-block-navigation,
+ .block-editor-block-navigation,
.table-of-contents {
display: none;
@@ -33,7 +33,7 @@
min-height: $block-toolbar-height;
border-bottom: $border-width solid $light-gray-500;
- .editor-block-toolbar .components-toolbar {
+ .block-editor-block-toolbar .components-toolbar {
border-top: none;
border-bottom: none;
}
@@ -63,11 +63,11 @@
right: auto;
}
- .editor-block-toolbar {
+ .block-editor-block-toolbar {
margin: -($grid-size + $border-width) 0;
}
- .editor-block-toolbar .components-toolbar {
+ .block-editor-block-toolbar .components-toolbar {
padding: ($grid-size + $border-width + $border-width) $grid-size-small ($grid-size + $border-width);
}
}
diff --git a/packages/edit-post/src/components/sidebar/style.scss b/packages/edit-post/src/components/sidebar/style.scss
index cfc42eb75f7b3..793088a039091 100644
--- a/packages/edit-post/src/components/sidebar/style.scss
+++ b/packages/edit-post/src/components/sidebar/style.scss
@@ -98,7 +98,7 @@
margin-top: -1em;
}
- .editor-skip-to-selected-block:focus {
+ .block-editor-skip-to-selected-block:focus {
top: auto;
right: 10px;
bottom: 10px;
diff --git a/packages/edit-post/src/components/visual-editor/block-inspector-button.js b/packages/edit-post/src/components/visual-editor/block-inspector-button.js
index 09a28d76f7eda..283c3f99b86a7 100644
--- a/packages/edit-post/src/components/visual-editor/block-inspector-button.js
+++ b/packages/edit-post/src/components/visual-editor/block-inspector-button.js
@@ -36,7 +36,7 @@ export function BlockInspectorButton( {
return (