From d69eca92579f73014573cca8c8357aa47e93b12c Mon Sep 17 00:00:00 2001 From: Carlos Garcia Date: Wed, 2 Feb 2022 11:49:24 +0100 Subject: [PATCH 01/33] Add test case: display media picker when selected --- .../src/gallery/test/index.native.js | 58 ++++++++++++++----- 1 file changed, 45 insertions(+), 13 deletions(-) diff --git a/packages/block-library/src/gallery/test/index.native.js b/packages/block-library/src/gallery/test/index.native.js index f91ef40aafa1ba..b7dcca66102f25 100644 --- a/packages/block-library/src/gallery/test/index.native.js +++ b/packages/block-library/src/gallery/test/index.native.js @@ -14,18 +14,7 @@ import { */ import { getBlockTypes, unregisterBlockType } from '@wordpress/blocks'; import { registerCoreBlocks } from '@wordpress/block-library'; - -beforeAll( () => { - // Register all core blocks - registerCoreBlocks(); -} ); - -afterAll( () => { - // Clean up registered blocks - getBlockTypes().forEach( ( block ) => { - unregisterBlockType( block.name ); - } ); -} ); +import { Platform } from '@wordpress/element'; const GALLERY_WITH_ONE_IMAGE = `