diff --git a/test/e2e/specs/editor/plugins/post-type-locking.spec.js b/test/e2e/specs/editor/plugins/post-type-locking.spec.js index 5c1d6ebf06dac0..cdfce4c08dcc9b 100644 --- a/test/e2e/specs/editor/plugins/post-type-locking.spec.js +++ b/test/e2e/specs/editor/plugins/post-type-locking.spec.js @@ -21,14 +21,6 @@ test.describe( 'Post-type locking', () => { await admin.createNewPost( { postType: 'locked-all-post' } ); } ); - test( 'should disable the inserter', async ( { page } ) => { - await expect( - page - .getByRole( 'toolbar', { name: 'Document tools' } ) - .getByRole( 'button', { name: 'Toggle block inserter' } ) - ).toBeDisabled(); - } ); - test( 'should not allow blocks to be removed', async ( { editor, page, @@ -147,31 +139,6 @@ test.describe( 'Post-type locking', () => { 'The content of your post doesn’t match the template assigned to your post type.' ); } ); - - test( 'should not allow blocks to be inserted in inner blocks', async ( { - editor, - page, - } ) => { - await editor.canvas - .getByRole( 'button', { - name: 'Two columns; equal split', - } ) - .click(); - - await expect( - page - .getByRole( 'document', { - name: 'Block: Column (1 of 2)', - } ) - .getByRole( 'button', { name: 'Add block' } ) - ).toBeHidden(); - - await expect( - page - .getByRole( 'toolbar', { name: 'Document tools' } ) - .getByRole( 'button', { name: 'Toggle block inserter' } ) - ).toBeDisabled(); - } ); } ); test.describe( 'template_lock insert', () => { @@ -179,14 +146,6 @@ test.describe( 'Post-type locking', () => { await admin.createNewPost( { postType: 'locked-insert-post' } ); } ); - test( 'should disable the inserter', async ( { page } ) => { - await expect( - page - .getByRole( 'toolbar', { name: 'Document tools' } ) - .getByRole( 'button', { name: 'Toggle block inserter' } ) - ).toBeDisabled(); - } ); - test( 'should not allow blocks to be removed', async ( { editor, page,