Skip to content

Commit

Permalink
Fix classname convention and update test
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Feb 10, 2021
1 parent 125895d commit a09c34a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ describe( 'Navigation editor', () => {
expect( await getSerializedBlocks() ).toMatchSnapshot();
} );

// Regressed—to be reimplemented.
it( 'shows a submenu when a link is selected and hides it when clicking the editor to deselect it', async () => {
await setUpResponseMocking( [
...getMenuMocks( { GET: assignMockMenuIds( menusFixture ) } ),
Expand All @@ -208,7 +207,7 @@ describe( 'Navigation editor', () => {
expect( submenuLinkVisible ).toBeDefined();

// Click the editor canvas.
await page.click( '.edit-navigation-editor__block-view' );
await page.click( '.edit-navigation-layout__canvas' );

// There should be a submenu in the DOM, but it should be hidden.
const submenuLinkHidden = await page.waitForXPath( submenuLinkXPath, {
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-navigation/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default function Layout( { blockEditorSettings } ) {
saveBlocks={ savePost }
/>
<div
className="navigation-editor-canvas"
className="edit-navigation-layout__canvas"
ref={ canvasRef }
>
<Editor
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-navigation/src/components/layout/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.edit-navigation-layout {
margin-right: $sidebar-width;

.navigation-editor-canvas {
.edit-navigation-layout__canvas {
// Provide space for the floating block toolbar.
padding-top: $grid-unit-40 * 3;

Expand Down

0 comments on commit a09c34a

Please sign in to comment.