Skip to content

Commit

Permalink
remove placeholder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Aug 1, 2022
1 parent d822e2a commit b781d7c
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions packages/e2e-tests/specs/editor/blocks/navigation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -568,54 +568,6 @@ Expected mock function not to be called but it was called with: ["POST", "http:/
expect( blockAppender ).toBeNull();
} );
} );

describe( 'placeholder actions', () => {
it( 'allows a navigation block to be created from existing menus', async () => {
await createClassicMenu( { name: 'Test Menu 1' } );
await createClassicMenu(
{ name: 'Test Menu 2' },
menuItemsFixture
);

await createNewPost();
await insertBlock( 'Navigation' );
await selectClassicMenu( 'Test Menu 2' );

// Wait for a navigation link block before making assertion.
await page.waitForSelector(
'*[aria-label="Block: Custom Link"]'
);
expect( await getNavigationMenuRawContent() ).toMatchSnapshot();
} );

it( 'creates an empty navigation block when the selected existing menu is also empty', async () => {
await createClassicMenu( { name: 'Test Menu 1' } );
await createNewPost();
await insertBlock( 'Navigation' );
await selectClassicMenu( 'Test Menu 1' );

// Wait for the appender so that we know the navigation menu was created.
await page.waitForSelector(
'nav[aria-label="Block: Navigation"] button[aria-label="Add block"]'
);
expect( await getNavigationMenuRawContent() ).toMatchSnapshot();
} );

it( 'does not display the options to create from existing menus if there are no existing menus', async () => {
await createNewPost();

await insertBlock( 'Navigation' );
await page.waitForXPath( START_EMPTY_XPATH );

const placeholderActionsLength = await page.$$eval(
`.${ PLACEHOLDER_ACTIONS_CLASS } button`,
( els ) => els.length
);

// Should only be showing "Start empty".
expect( placeholderActionsLength ).toEqual( 1 );
} );
} );
} );

it( 'allows an empty navigation block to be created and manually populated using a mixture of internal and external links', async () => {
Expand Down

0 comments on commit b781d7c

Please sign in to comment.