From 3d797727145a8f06a05b3b943eb943cb5b4d12da Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Thu, 21 Dec 2023 10:39:44 +0100 Subject: [PATCH] Inserter is empty not disabled --- .../editor/plugins/post-type-locking.spec.js | 41 ------------------- 1 file changed, 41 deletions(-) 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,