Skip to content

Commit

Permalink
Add a test block
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Apr 19, 2023
1 parent 9ed33e5 commit 458bf40
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/e2e-tests/plugins/block-api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@
},
} );

registerBlockType( 'e2e-tests/auto-inserted', {
title: 'Auto Inserted',
description: 'Auto-inserted test block.',
category: 'widgets',
edit() {
return 'I got auto-inserted!';
},
save() {
return 'I got auto-inserted';
},
autoInsert: {
after: [ 'core/quote' ],
},
} );

addFilter(
'blocks.registerBlockType',
'e2e-tests/hello-world/filter-added-after-registration',
Expand Down

0 comments on commit 458bf40

Please sign in to comment.